Desktop: Fixed issue with the editor showing previous note when it should show nothing

pull/3189/head^2
Laurent Cozic 2020-05-20 00:13:59 +00:00
parent a99db36578
commit 5eb084fd3b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}