From 73f8f4d55ba59fe5177ed38280bd93841a1d8c5c Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 17 Feb 2024 16:26:00 +0100 Subject: [PATCH] fix: burgs overview - add MFCG link back --- modules/ui/burgs-overview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/burgs-overview.js b/modules/ui/burgs-overview.js index 48fe3cbc..4a4a14da 100644 --- a/modules/ui/burgs-overview.js +++ b/modules/ui/burgs-overview.js @@ -1,5 +1,5 @@ "use strict"; -function overviewBurgs(options = {stateId: null, cultureId: null}) { +function overviewBurgs(settings = {stateId: null, cultureId: null}) { if (customization) return; closeDialogs("#burgsOverview, .stable"); if (!layerIsOn("toggleIcons")) toggleIcons(); @@ -45,7 +45,7 @@ function overviewBurgs(options = {stateId: null, cultureId: null}) { function updateFilter() { const stateFilter = byId("burgsFilterState"); - const selectedState = options.stateId !== null ? options.stateId : stateFilter.value || -1; + const selectedState = settings.stateId !== null ? settings.stateId : stateFilter.value || -1; stateFilter.options.length = 0; // remove all options stateFilter.options.add(new Option("all", -1, false, selectedState === -1)); stateFilter.options.add(new Option(pack.states[0].name, 0, false, selectedState === 0)); @@ -53,7 +53,7 @@ function overviewBurgs(options = {stateId: null, cultureId: null}) { statesSorted.forEach(s => stateFilter.options.add(new Option(s.name, s.i, false, s.i == selectedState))); const cultureFilter = byId("burgsFilterCulture"); - const selectedCulture = options.cultureId !== null ? options.cultureId : cultureFilter.value || -1; + const selectedCulture = settings.cultureId !== null ? settings.cultureId : cultureFilter.value || -1; cultureFilter.options.length = 0; // remove all options cultureFilter.options.add(new Option(`all`, -1, false, selectedCulture === -1)); cultureFilter.options.add(new Option(pack.cultures[0].name, 0, false, selectedCulture === 0));