mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
fix: setImmediate not defined
This commit is contained in:
@@ -47,7 +47,7 @@ function Unlock(props) {
|
||||
useEffect(() => {
|
||||
clearSession(false);
|
||||
setIsEditorOpen(true);
|
||||
setImmediate(() => setSelectedNote(noteId));
|
||||
setTimeout(() => setSelectedNote(noteId));
|
||||
}, [clearSession, setIsEditorOpen, setSelectedNote, noteId]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user