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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user