mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
chore(react): fix a type error
This commit is contained in:
parent
4685aef88d
commit
d76d50f30e
@ -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 }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user