From 8a2b757197f280a58af2ae35abd00163c81eb16c Mon Sep 17 00:00:00 2001 From: vipinpaul Date: Mon, 18 Nov 2024 15:07:14 +0530 Subject: [PATCH] Fixed the issue with non selected books and chapters --- .../components/EditorPage/Navigation/reference/SelectVerse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/src/components/EditorPage/Navigation/reference/SelectVerse.js b/renderer/src/components/EditorPage/Navigation/reference/SelectVerse.js index ba564b1c..85e20631 100644 --- a/renderer/src/components/EditorPage/Navigation/reference/SelectVerse.js +++ b/renderer/src/components/EditorPage/Navigation/reference/SelectVerse.js @@ -118,8 +118,8 @@ export default function SelectVerse({ key={chapter.key} role="presentation" id={`chapter-${chapter.name}`} - onClick={(e) => { call === 'audio-project' ? (scopedChapters.includes(chapter.name) ? onChapterSelect(e, chapter.key) : '') : onChapterSelect(e, chapter.key); }} - className={call === 'audio-project' ? (scopedChapters.includes(chapter.name) ? styles.select : styles.disabled) : styles.select} + onClick={(e) => { call === 'audio-project' ? (scopedChapters && scopedChapters?.includes(chapter.name) ? onChapterSelect(e, chapter.key) : '') : onChapterSelect(e, chapter.key); }} + className={call === 'audio-project' ? (scopedChapters && scopedChapters?.includes(chapter.name) ? styles.select : styles.disabled) : styles.select} > {chapter.name}