mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +01:00
chore(client): fix typecheck
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user