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