aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/main.js b/main.js
index 8a6d8f5..60233de 100644
--- a/main.js
+++ b/main.js
@@ -5927,13 +5927,11 @@ const ageFilterSetActive = (function() {
.forEach((lyr) => lyr.changed());
};
const setter = function(active) {
- if (ageFilterSettings._active !== active) {
- if (active) {
- ageFilterSettings.setupMinMax();
- }
- ageFilterSettings._active = active;
- changed();
+ if (active) {
+ ageFilterSettings.setupMinMax();
}
+ ageFilterSettings._active = active;
+ changed();
if (active && ageFilterSettings.type === 'relative') {
if (timeoutID == null) {
timeoutID = setTimeout(fun, getDelay(state)[0]);