You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Desktop: Fixes #4038: Fixed issue when a newly created note would be automatically moved to the wrong folder on save
This commit is contained in:
@@ -140,7 +140,10 @@ export default function useFormNote(dependencies: HookDependencies) {
|
|||||||
}, [prevSyncStarted, syncStarted, formNote]);
|
}, [prevSyncStarted, syncStarted, formNote]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!noteId) return () => {};
|
if (!noteId) {
|
||||||
|
if (formNote.id) setFormNote(defaultFormNote());
|
||||||
|
return () => {};
|
||||||
|
}
|
||||||
|
|
||||||
if (formNote.id === noteId) return () => {};
|
if (formNote.id === noteId) return () => {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user