chore(client): fix typecheck

This commit is contained in:
Elian Doran 2025-11-22 21:37:37 +02:00
parent 56c82d7f0f
commit 26f7264f3c
No known key found for this signature in database

View File

@ -258,7 +258,7 @@ export function useUniqueName(prefix?: string) {
export function useNoteContext() { export function useNoteContext() {
const noteContextContext = useContext(NoteContextContext); const noteContextContext = useContext(NoteContextContext);
const [ noteContext, setNoteContext ] = useState<NoteContext | null>(noteContextContext); const [ noteContext, setNoteContext ] = useState<NoteContext | undefined>(noteContextContext ?? undefined);
const [ notePath, setNotePath ] = useState<string | null | undefined>(); const [ notePath, setNotePath ] = useState<string | null | undefined>();
const [ note, setNote ] = useState<FNote | null | undefined>(); const [ note, setNote ] = useState<FNote | null | undefined>();
const [ , setViewScope ] = useState<ViewScope>(); const [ , setViewScope ] = useState<ViewScope>();