Fixed broken scene photo length check in release banner.

This commit is contained in:
DebaucheryLibrarian 2022-03-28 00:31:59 +02:00
parent bb9649d23b
commit 6547b93e55
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="media-container">
<div
class="media"
:class="{ center: release.photos.length + release.scenesPhotos.length < 2, preview: !me }"
:class="{ center: (release.photos?.length < 2) || (release.scenesPhotos?.length < 2), preview: !me }"
>
<div
v-if="release.trailer || release.teaser"
@ -71,7 +71,7 @@
</span>
</div>
<template v-if="release.covers && release.covers.length > 0">
<template v-if="release.covers?.length > 0">
<div
v-for="cover in release.covers"
:key="`cover-${cover.id}`"