From a8b006bb2559733b95847647ef6f1eb836f5e6aa Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:09:16 +0800 Subject: [PATCH] Fix subject metadata --- src/book-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book-info.js b/src/book-info.js index 2c267307..60995a3a 100644 --- a/src/book-info.js +++ b/src/book-info.js @@ -159,7 +159,7 @@ const makeBookInfoBox = (metadata, pixbuf) => { margin_top: 12, }) box.append(subjectsBox) - for (const subject of metadata.subject) + for (const subject of [].concat(metadata.subject)) subjectsBox.insert(makeSubjectBox(subject), -1) }