Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(react): fix a type error
Elian Dorand76d50f30e91
diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsxindex 26c41eee0f..b948f287ed 100644--- a/apps/client/src/widgets/react/hooks.tsx+++ b/apps/client/src/widgets/react/hooks.tsx@@ -316,7 +316,7 @@ export function useNoteProperty<T extends keyof FNote>(note: FNote | null | undereturn note[property];}-export function useNoteLabel(note: FNote | undefined | null, labelName: string): [string | undefined, (newValue: string) => void] {+export function useNoteLabel(note: FNote | undefined | null, labelName: string): [string | null | undefined, (newValue: string) => void] {const [ labelValue, setNoteValue ] = useState<string | null | undefined>(note?.getLabelValue(labelName));useTriliumEventBeta("entitiesReloaded", ({ loadResults }) => {