mirror of https://github.com/laurent22/joplin.git
Desktop: Fixes #4038: Fixed issue when a newly created note would be automatically moved to the wrong folder on save
parent
5f05f85e41
commit
284dbdb362
|
@ -140,7 +140,10 @@ export default function useFormNote(dependencies: HookDependencies) {
|
|||
}, [prevSyncStarted, syncStarted, formNote]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!noteId) return () => {};
|
||||
if (!noteId) {
|
||||
if (formNote.id) setFormNote(defaultFormNote());
|
||||
return () => {};
|
||||
}
|
||||
|
||||
if (formNote.id === noteId) return () => {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue