Fix bar being too long due to time to decimal changing while remaking bar not true

This commit is contained in:
Ajay
2022-12-11 16:58:40 -05:00
parent 16581d39a4
commit 3e3059d79a

View File

@@ -374,7 +374,6 @@ class PreviewBar {
return;
}
if (remakingBar) {
const filteredSegments = segments?.filter((segment) => this.chapterFilter(segment));
if (filteredSegments) {
let groups = this.unfilteredChapterGroups;
@@ -394,7 +393,6 @@ class PreviewBar {
} else {
this.chapterGroups = this.unfilteredChapterGroups;
}
}
if (!this.chapterGroups || this.chapterGroups.length <= 0) {
if (this.customChaptersBar) this.customChaptersBar.style.display = "none";