2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 01:36:29 +00:00

Table filters refactor (#5086)

- Fix a couple of bugs
- Code cleanup
This commit is contained in:
Oliver
2023-06-22 10:29:14 +10:00
committed by GitHub
parent deffcc2814
commit 693d24b4b6
6 changed files with 18 additions and 42 deletions

View File

@@ -1886,10 +1886,7 @@ function loadStockTable(table, options) {
});
}
// Override the default values, or add new ones
for (var key in params) {
filters[key] = params[key];
}
filters = Object.assign(filters, params);
var col = null;
@@ -2450,9 +2447,7 @@ function loadStockLocationTable(table, options) {
plural_name: '{% trans "stock locations" %}',
});
for (var key in params) {
filters[key] = params[key];
}
filters = Object.assign(filters, params);
// Function to request sub-location items
function requestSubItems(parent_pk) {