From 17218e810d95406954bd8b969a0c500af0aedcee Mon Sep 17 00:00:00 2001 From: Avaneesh Kumar <45495598+avaneeshk098@users.noreply.github.com> Date: Tue, 18 Nov 2025 16:47:12 -0600 Subject: [PATCH] added null checking for image descriptions --- src/screens/EPub/components/ChapterImage/ImageDescription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/EPub/components/ChapterImage/ImageDescription.js b/src/screens/EPub/components/ChapterImage/ImageDescription.js index fc45b53b8..0a07019b1 100644 --- a/src/screens/EPub/components/ChapterImage/ImageDescription.js +++ b/src/screens/EPub/components/ChapterImage/ImageDescription.js @@ -7,8 +7,8 @@ function ImageDescription({ descriptions, onChange }) { - let myDescriptions = [...descriptions] if (Array.isArray(descriptions)) { + let myDescriptions = [...descriptions]; if (descriptions[descriptions.length - 1] !== "") { myDescriptions.push(""); }