mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
acf89426ce
commit
941ee5e172
2 changed files with 53 additions and 52 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue