This commit is contained in:
lesion 2022-05-20 12:32:51 +02:00
parent 1751cae8a0
commit 13df8b0d64
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -10,7 +10,7 @@
:height="height" :width="width"
: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>
</template>
<script>
@ -35,7 +35,7 @@ export default {
return `/media/thumb/${this.media.url} 500w, /media/${this.media.url} 1200w`
},
media () {
return this.event.media[0]
return this.event.media && this.event.media[0]
},
height () {
return this.media ? this.media.height : 'auto'