This commit is contained in:
lesion
2022-05-20 12:32:51 +02:00
parent 1751cae8a0
commit 13df8b0d64

View File

@@ -10,7 +10,7 @@
:height="height" :width="width" :height="height" :width="width"
:style="{ 'object-position': thumbnailPosition }"> :style="{ 'object-position': thumbnailPosition }">
<img v-else-if='!media && thumb' class='thumb' src="noimg.svg" alt=''> <img v-else-if='!media && thumb' class='thumb' src="/noimg.svg" alt=''>
</div> </div>
</template> </template>
<script> <script>
@@ -35,7 +35,7 @@ export default {
return `/media/thumb/${this.media.url} 500w, /media/${this.media.url} 1200w` return `/media/thumb/${this.media.url} 500w, /media/${this.media.url} 1200w`
}, },
media () { media () {
return this.event.media[0] return this.event.media && this.event.media[0]
}, },
height () { height () {
return this.media ? this.media.height : 'auto' return this.media ? this.media.height : 'auto'