From 0203f9cc1b37b5dda029858e62a5ad216774e6ec Mon Sep 17 00:00:00 2001 From: advplyr <67830747+advplyr@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:50:50 -0600 Subject: [PATCH] Update server/objects/mediaTypes/Book.js --- server/objects/mediaTypes/Book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/objects/mediaTypes/Book.js b/server/objects/mediaTypes/Book.js index aaaa523e..bc34bbb8 100644 --- a/server/objects/mediaTypes/Book.js +++ b/server/objects/mediaTypes/Book.js @@ -444,7 +444,7 @@ class Book { id: c.id + currChapterId, start: c.start + currStartTime, end: c.end + currStartTime, - })) + })) ?? [] this.chapters = this.chapters.concat(chapters) currChapterId += file.chapters?.length ?? 0