From d76d50f30e91b38313406f488ae6e99123c1fb69 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 21 Aug 2025 17:16:03 +0300 Subject: [PATCH] chore(react): fix a type error --- apps/client/src/widgets/react/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 26c41eee0..b948f287e 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -316,7 +316,7 @@ export function useNoteProperty(note: FNote | null | unde return 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(note?.getLabelValue(labelName)); useTriliumEventBeta("entitiesReloaded", ({ loadResults }) => {