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