Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/type_widgets): active note not refreshing

Elian Dorane1ac319a7b46
diff --git a/apps/client/src/widgets/type_widgets/Render.tsx b/apps/client/src/widgets/type_widgets/Render.tsx
index 60b8e91a56..69e087f072 100644
--- a/apps/client/src/widgets/type_widgets/Render.tsx
+++ b/apps/client/src/widgets/type_widgets/Render.tsx
@@ -21,7 +21,7 @@ export default function Render({ note, noteContext, ntxId }: TypeWidgetProps) {
// Keyboard shortcut.
useTriliumEvent("renderActiveNote", () => {
- if (noteContext?.isActive()) return;
+ if (!noteContext?.isActive()) return;
refresh();
});