Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/revisions): wrong selection when navigating between notes

Elian Doranf0d14a966a42
diff --git a/apps/client/src/widgets/dialogs/revisions.tsx b/apps/client/src/widgets/dialogs/revisions.tsx
index 61e1ed1db0..0fa4f956e3 100644
--- a/apps/client/src/widgets/dialogs/revisions.tsx
+++ b/apps/client/src/widgets/dialogs/revisions.tsx
@@ -71,6 +71,8 @@ export default function RevisionsDialog() {
onHidden={() => {
setShown(false);
setNote(undefined);
+ setCurrentRevision(undefined);
+ setRevisions(undefined);
}}
show={shown}
>