From 338fcdece19003f94393f6546e3e0045ff67b675 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 15 Mar 2023 14:57:38 +0200 Subject: [PATCH] Fix location filters outside filter modal --- assets/js/dashboard/filters.js | 6 +++--- assets/js/dashboard/stats/locations/index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/js/dashboard/filters.js b/assets/js/dashboard/filters.js index 2384b7920..e8bc57360 100644 --- a/assets/js/dashboard/filters.js +++ b/assets/js/dashboard/filters.js @@ -17,9 +17,9 @@ function removeFilter(key, history, query) { const newOpts = { [key]: false } - if (key === 'country') { newOpts.country_name = false } - if (key === 'region') { newOpts.region_name = false } - if (key === 'city') { newOpts.city_name = false } + if (key === 'country') { newOpts.country_labels = false } + if (key === 'region') { newOpts.region_labels = false } + if (key === 'city') { newOpts.city_labels = false } navigateToQuery( history, diff --git a/assets/js/dashboard/stats/locations/index.js b/assets/js/dashboard/stats/locations/index.js index 23574ea66..6ce0bbd62 100644 --- a/assets/js/dashboard/stats/locations/index.js +++ b/assets/js/dashboard/stats/locations/index.js @@ -21,7 +21,7 @@ function Countries({query, site, onClick}) { return (