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

Merge pull request #3609 from sancodes/eslint-no-sequences

Eslint no sequences
This commit is contained in:
Bill Thornton 2022-06-09 12:24:52 -04:00 committed by GitHub
commit 79db34a2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 41 additions and 14 deletions

View file

@ -1786,7 +1786,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');