Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/type_widgets): unable to switch to notes of same note type

Elian Doranbb7fa9a2e604
diff --git a/apps/client/src/widgets/NoteDetail.tsx b/apps/client/src/widgets/NoteDetail.tsx
index 1084011ed8..1d721c4523 100644
--- a/apps/client/src/widgets/NoteDetail.tsx
+++ b/apps/client/src/widgets/NoteDetail.tsx
@@ -220,7 +220,7 @@ function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: {
} else {
// Do nothing, keep the old props.
}
- }, [ isVisible ]);
+ }, [ props, isVisible ]);
const typeMapping = TYPE_MAPPINGS[type];
return (