Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix property filter suggestions 500 error when property hasn't been selected (#4503)
Karl-Aksel Puulmannf18d0045843f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cceb20a547..e654ffd269 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -41,6 +41,7 @@ All notable changes to this project will be documented in this file.- Fix access to Stats API feature in CE plausible/analytics#4244- Fix filter suggestions when same filter previously applied- Fix MX lookup when using relays with Bamboo.Mua plausible/analytics#4350+- Fix property filter suggestions 500 error when property hasn't been selected## v2.1.1 - 2024-06-06diff --git a/assets/js/dashboard/stats/modals/filter-modal-props-row.js b/assets/js/dashboard/stats/modals/filter-modal-props-row.jsindex 1f8f01fdf6..486d0d469c 100644--- a/assets/js/dashboard/stats/modals/filter-modal-props-row.js+++ b/assets/js/dashboard/stats/modals/filter-modal-props-row.js@@ -35,7 +35,9 @@ export default function FilterModalPropsRow({}function fetchPropValueOptions(input) {- if ([FILTER_OPERATIONS.contains, FILTER_OPERATIONS.does_not_contain].includes(operation)) { return Promise.resolve([]) }+ if ([FILTER_OPERATIONS.contains, FILTER_OPERATIONS.does_not_contain].includes(operation) || propKey == "") {+ return Promise.resolve([])+ }return fetchSuggestions(apiPath(site, `/suggestions/prop_value`), query, input, [FILTER_OPERATIONS.isNot, filterKey, ['(none)']])