From 5eb084fd3b9c58775cfcd4937b03e824870ccdb9 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 20 May 2020 00:13:59 +0000 Subject: [PATCH] Desktop: Fixed issue with the editor showing previous note when it should show nothing --- ElectronClient/gui/NoteEditor/NoteEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronClient/gui/NoteEditor/NoteEditor.tsx b/ElectronClient/gui/NoteEditor/NoteEditor.tsx index 47f3246e27..b9badf698c 100644 --- a/ElectronClient/gui/NoteEditor/NoteEditor.tsx +++ b/ElectronClient/gui/NoteEditor/NoteEditor.tsx @@ -514,7 +514,7 @@ function NoteEditor(props: NoteEditorProps) { ); } - if (formNote.encryption_applied || !formNote.id) { + if (formNote.encryption_applied || !formNote.id || !props.noteId) { return renderNoNotes(styles.root); }