mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(ribbon): code note types not refreshing
This commit is contained in:
		| @@ -102,7 +102,7 @@ export function useTriliumOption(name: OptionNames, needsRefresh?: boolean): [st | |||||||
|             const newValue = options.get(name); |             const newValue = options.get(name); | ||||||
|             setValue(newValue); |             setValue(newValue); | ||||||
|         } |         } | ||||||
|      }, [ name ])); |      }, [ name, setValue ])); | ||||||
|  |  | ||||||
|     useDebugValue(name); |     useDebugValue(name); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -145,7 +145,7 @@ function CodeMimeTypes() { | |||||||
|             result[initial].push(mimeType); |             result[initial].push(mimeType); | ||||||
|         } |         } | ||||||
|         return result; |         return result; | ||||||
|     }, []);   |     }, [ codeNotesMimeTypes ]);   | ||||||
|  |  | ||||||
|     return ( |     return ( | ||||||
|         <OptionsSection title={t("code_mime_types.title")}> |         <OptionsSection title={t("code_mime_types.title")}> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user