mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +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) {
|
||||
this.$toc.append($toc);
|
||||
} else {
|
||||
this.$toc.empty();
|
||||
}
|
||||
|
||||
if (["", "show"].includes(tocLabel?.value ?? "") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
||||
|
||||
Reference in New Issue
Block a user