Skip to content

Commit

Permalink
Fix browser version linking (plausible#4259)
Browse files Browse the repository at this point in the history
  • Loading branch information
macobo authored Jun 25, 2024
1 parent 58a66a9 commit 70fca3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/dashboard/stats/devices/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}))}
})
}
Expand All @@ -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]]
}
}

Expand Down

0 comments on commit 70fca3e

Please sign in to comment.