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

Check the property first

This commit is contained in:
Dmitry Lyzo 2021-09-11 15:03:58 +03:00
parent 9778f2db65
commit 4aadddd364

View file

@ -182,7 +182,7 @@ import { appRouter } from '../../../components/appRouter';
view.querySelector('.btnAudio').classList.add('hide'); view.querySelector('.btnAudio').classList.add('hide');
} }
if (currentItem.Chapters.length > 1) { if (currentItem.Chapters?.length > 1) {
view.querySelector('.btnPreviousChapter').classList.remove('hide'); view.querySelector('.btnPreviousChapter').classList.remove('hide');
view.querySelector('.btnNextChapter').classList.remove('hide'); view.querySelector('.btnNextChapter').classList.remove('hide');
} else { } else {