1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#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 13 additions and 6 deletions

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);
}