Make countries/regions/cities tooltips work (#4580)

Previously these tooltips said `Add filter: Country is undefined`
because new labels were yet to be in `query`.
This commit is contained in:
Karl-Aksel Puulmann 2024-09-30 09:56:20 +03:00 committed by GitHub
parent 88144ecdf6
commit 7f361cf018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -60,6 +60,7 @@ All notable changes to this project will be documented in this file.
- Fix property filter suggestions 500 error when property hasn't been selected
- Bamboo.Mua: add Date and Message-ID headers if missing plausible/analytics#4474
- Fix migration order across `plausible_db` and `plausible_events_db` databases plausible/analytics#4466
- Fix tooltips for countries/cities/regions links in dashboard
## v2.1.1 - 2024-06-06

View File

@ -29,7 +29,7 @@ export function FilterLink({ path, filterInfo, onClick, children, extraClass })
return (
<AppNavigationLink
title={`Add filter: ${plainFilterText(query, filter)}`}
title={`Add filter: ${plainFilterText({ ...query, labels: newLabels }, filter)}`}
className={className}
path={path}
onClick={onClick}