Skip to content

Build your personal knowledge base with Trilium Notes

fix(right_pane): table of contents no longer visible

Elian Doran334c31e79da2
diff --git a/apps/client/src/widgets/sidebar/RightPanelContainer.tsx b/apps/client/src/widgets/sidebar/RightPanelContainer.tsx
index 83a8d957f1..e10fae7492 100644
--- a/apps/client/src/widgets/sidebar/RightPanelContainer.tsx
+++ b/apps/client/src/widgets/sidebar/RightPanelContainer.tsx
@@ -22,7 +22,7 @@ export default function RightPanelContainer() {
const { note } = useActiveNoteContext();
const noteType = useNoteProperty(note, "type");
const items = [
- noteType === "text" || noteType === "doc" && <TableOfContents />,
+ (noteType === "text" || noteType === "doc") && <TableOfContents />,
noteType === "text" && <HighlightsList />
].filter(Boolean);