mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	client: Fix duplicate items in language selection
This commit is contained in:
		| @@ -29,6 +29,8 @@ export default class LocalizationOptions extends OptionsWidget { | |||||||
|  |  | ||||||
|     async optionsLoaded(options) { |     async optionsLoaded(options) { | ||||||
|         const availableLocales = await server.get("options/locales"); |         const availableLocales = await server.get("options/locales"); | ||||||
|  |         this.$localeSelect.empty(); | ||||||
|  |  | ||||||
|         for (const locale of availableLocales) { |         for (const locale of availableLocales) { | ||||||
|             this.$localeSelect.append($("<option>") |             this.$localeSelect.append($("<option>") | ||||||
|                 .attr("value", locale.id) |                 .attr("value", locale.id) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user