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:
commit
79db34a2a7
11 changed files with 41 additions and 14 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue