chore(react): fix a type error

This commit is contained in:
Elian Doran 2025-08-21 17:16:03 +03:00
parent 4685aef88d
commit d76d50f30e
No known key found for this signature in database

View File

@ -316,7 +316,7 @@ export function useNoteProperty<T extends keyof FNote>(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<string | null | undefined>(note?.getLabelValue(labelName));
useTriliumEventBeta("entitiesReloaded", ({ loadResults }) => {