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