mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
fix(client/ts): regression in table of contents
This commit is contained in:
@@ -132,10 +132,9 @@ export default class TocWidget extends RightPanelWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$toc.empty();
|
||||||
if ($toc) {
|
if ($toc) {
|
||||||
this.$toc.append($toc);
|
this.$toc.append($toc);
|
||||||
} else {
|
|
||||||
this.$toc.empty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (["", "show"].includes(tocLabel?.value ?? "") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
if (["", "show"].includes(tocLabel?.value ?? "") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user