2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 02:35:27 +00:00

Fixed "await" for refreshable states

- Progress indicator stays in place until calls are completed
This commit is contained in:
Oliver Walters
2021-02-07 09:43:07 +11:00
parent 0cfac69d16
commit 12f4a4fa38
4 changed files with 18 additions and 21 deletions

View File

@ -60,7 +60,7 @@ class _CompanyListState extends RefreshableState<CompanyListWidget> {
@override
Future<void> request(BuildContext context) async {
InvenTreeCompany().list(context, filters: _filters).then((var companies) {
await InvenTreeCompany().list(context, filters: _filters).then((var companies) {
_companies.clear();