Skip to content

Commit

Permalink
always sort browsers in the same order
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Jul 10, 2023
1 parent f147ffd commit abecab0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/server/report/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ class App extends LitElement {
this._updateSearchParams({ file: undefined, test: undefined });
}
_handleFilterBrowserChange(e) {
const browsers = [...this._filterBrowsers];
const index = browsers.indexOf(e.target.value);
if (!e.target.checked && index > -1) {
browsers.splice(index, 1);
} else if (e.target.checked && index === -1) {
browsers.push(e.target.value);
}
const browsers = data.browsers.map(b => b.name).filter(b => {
if (b === e.target.value) {
return e.target.checked;
} else {
return this._filterBrowsers.includes(b);
}
});
this._updateSearchParams({ browsers: browsers.join(',') });
}
_handleFilterStatusChange(e) {
Expand Down

0 comments on commit abecab0

Please sign in to comment.