2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Prevent "old" search results from mucking up the displayed data

- Only accept results if the search term has not changed
This commit is contained in:
Oliver Walters
2022-05-19 21:06:20 +10:00
parent acf89426ce
commit 941ee5e172
2 changed files with 53 additions and 52 deletions

View File

@ -216,8 +216,6 @@ class InvenTreeModel {
if (response.isValid()) {
int n = int.tryParse(response.data["count"].toString()) ?? 0;
print("${URL} -> ${n} results");
return n;
} else {
return 0;