Correct refresh data
This commit is contained in:
parent
b0ea8ae80e
commit
850ed9f108
|
|
@ -489,6 +489,10 @@ Middleware<AppState> _createDataRefreshed() {
|
|||
}
|
||||
|
||||
next(action);
|
||||
|
||||
if (store.state.company.isLarge && !store.state.isLoaded) {
|
||||
store.dispatch(LoadClients());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import 'package:invoiceninja_flutter/constants.dart';
|
|||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/main_app.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/client/client_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/company/company_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/dashboard/dashboard_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
|
||||
|
|
@ -286,7 +287,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
|
|||
store.dispatch(
|
||||
RefreshData(completer: action.completer, clearData: true));
|
||||
} else {
|
||||
if (action.clearData && !company.isLarge) {
|
||||
if (action.clearData) {
|
||||
store.dispatch(ClearData());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue