mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	chore(react): fix a type error
This commit is contained in:
		| @@ -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 }) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user