Fix browser version linking (#4259)

This was broken in https://github.com/plausible/analytics/pull/4246.

See also: https://3.basecamp.com/5308029/buckets/26383192/card_tables/cards/7514532175
This commit is contained in:
Karl-Aksel Puulmann 2024-06-25 11:25:28 +03:00 committed by GitHub
parent 58a66a952c
commit 70fca3e8d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ function BrowserVersions({ query, site, afterFetchData }) {
return api.get(url.apiPath(site, '/browser-versions'), query)
.then(res => {
return {...res, results: res.results.map((row => {
return {...row, name: `${row.browser} ${row.name}`}
return {...row, name: `${row.browser} ${row.name}`, version: row.name}
}))}
})
}
@ -88,7 +88,7 @@ function BrowserVersions({ query, site, afterFetchData }) {
}
return {
prefix: 'browser_version',
filter: ["is", "browser_version", [listItem['name']]]
filter: ["is", "browser_version", [listItem.version]]
}
}