From 6381f36a90d1e1d89838f3319b329693c1c8fde2 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 15 Sep 2022 23:33:48 -0400 Subject: [PATCH] Fix hover for first chapter --- src/js-components/previewBar.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index f9fa1087..6123715f 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -367,6 +367,8 @@ class PreviewBar { this.firstTimeSetupChapterSection(newSection); this.customChaptersBar.appendChild(newSection); + } else if (createFromScratch) { + this.firstTimeSetupChapterSection(newSection); } this.setupChapterSection(newSection, chapter[0], chapter[1], i !== chaptersToRender.length - 1);