mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix(toc): not hiding if too few headings
This commit is contained in:
@@ -137,7 +137,7 @@ export default class TocWidget extends RightPanelWidget {
|
||||
this.$toc.append($toc);
|
||||
}
|
||||
|
||||
if (["", "show"].includes(tocLabel?.value ?? "") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
||||
if ((tocLabel?.value === "" || tocLabel?.value === "show") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
||||
this.toggleInt(true);
|
||||
this.noteContext.viewScope.tocPreviousVisible = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user