mirror of
https://github.com/zadam/trilium.git
synced 2025-11-26 02:24:23 +01:00
chore(client): fix typecheck
This commit is contained in:
parent
56c82d7f0f
commit
26f7264f3c
@ -258,7 +258,7 @@ export function useUniqueName(prefix?: string) {
|
||||
|
||||
export function useNoteContext() {
|
||||
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 [ note, setNote ] = useState<FNote | null | undefined>();
|
||||
const [ , setViewScope ] = useState<ViewScope>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user