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}