mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
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:
parent
58a66a952c
commit
70fca3e8d1
@ -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]]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user