#6797: Properly update API select query parameters when values already exist on the element

This commit is contained in:
checktheroads 2021-07-30 01:25:29 -07:00
parent 772c76e0a4
commit 5413263eff
3 changed files with 7 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -164,6 +164,13 @@ class APISelect {
this.updateQueryParams(filter);
}
// Add any already-resolved key/value pairs to the API query parameters.
for (const [key, value] of this.filterParams.entries()) {
if (isTruthy(value)) {
this.queryParams.set(key, value);
}
}
for (const filter of this.pathValues.keys()) {
this.updatePathValues(filter);
}