From 26f7264f3cb93f658f41bb67c30a259b0e1d163b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 22 Nov 2025 21:37:37 +0200 Subject: [PATCH] chore(client): fix typecheck --- apps/client/src/widgets/react/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index f30957bef..34a7c9ed8 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -258,7 +258,7 @@ export function useUniqueName(prefix?: string) { export function useNoteContext() { const noteContextContext = useContext(NoteContextContext); - const [ noteContext, setNoteContext ] = useState(noteContextContext); + const [ noteContext, setNoteContext ] = useState(noteContextContext ?? undefined); const [ notePath, setNotePath ] = useState(); const [ note, setNote ] = useState(); const [ , setViewScope ] = useState();