mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 10:33:01 +03:00
Fix opening a filter modal (#4123)
Follow-up to #4117 Opening a utm modal crashed if there was an existing page filter. Bug struck in during a refactoring.
This commit is contained in:
parent
ab1416ba10
commit
850cc30e7a
@ -16,7 +16,7 @@ function partitionFilters(modalType, filters) {
|
||||
|
||||
filters.forEach((filter, index) => {
|
||||
const filterGroup = getFilterGroup(filter)
|
||||
if (FILTER_GROUP_TO_MODAL_TYPE[modalType].includes(filterGroup)) {
|
||||
if (FILTER_GROUP_TO_MODAL_TYPE[filterGroup] === modalType) {
|
||||
const key = filterState[filterGroup] ? `${filterGroup}:${index}` : filterGroup
|
||||
filterState[key] = filter
|
||||
hasRelevantFilters = true
|
||||
|
Loading…
Reference in New Issue
Block a user