mirror of
https://github.com/zadam/trilium.git
synced 2025-12-19 22:04:26 +01:00
fix(right_pane): table of contents no longer visible
Some checks are pending
Checks / main (push) Waiting to run
Some checks are pending
Checks / main (push) Waiting to run
This commit is contained in:
parent
a986c84ce7
commit
334c31e79d
@ -22,7 +22,7 @@ export default function RightPanelContainer() {
|
|||||||
const { note } = useActiveNoteContext();
|
const { note } = useActiveNoteContext();
|
||||||
const noteType = useNoteProperty(note, "type");
|
const noteType = useNoteProperty(note, "type");
|
||||||
const items = [
|
const items = [
|
||||||
noteType === "text" || noteType === "doc" && <TableOfContents />,
|
(noteType === "text" || noteType === "doc") && <TableOfContents />,
|
||||||
noteType === "text" && <HighlightsList />
|
noteType === "text" && <HighlightsList />
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user