1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix parenthesis

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
San 2022-05-30 20:45:33 -07:00 committed by GitHub
parent 9d99ffb426
commit 623524549a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1790,7 +1790,11 @@ function renderAdditionalParts(page, item, user) {
function renderScenes(page, item) {
let chapters = item.Chapters || [];
if ((chapters.length && !chapters[0].ImageTag && (chapters = []), chapters.length)) {
if (chapters.length && !chapters[0].ImageTag) {
chapters = [];
}
if (chapters.length) {
page.querySelector('#scenesCollapsible').classList.remove('hide');
const scenesContent = page.querySelector('#scenesContent');