Explorar o código

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

checktheroads %!s(int64=4) %!d(string=hai) anos
pai
achega
5413263eff

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
netbox/project-static/dist/netbox.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 7 - 0
netbox/project-static/src/select/api.ts

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

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio