This commit is contained in:
Hillel Coren 2019-10-03 09:59:10 +03:00
parent 5a5c08f6e7
commit f79c5a3b69
1 changed files with 7 additions and 2 deletions

View File

@ -27,10 +27,15 @@ class SettingsListVM {
});
static SettingsListVM fromStore(Store<AppState> store) {
final state = store.state;
return SettingsListVM(
state: store.state,
state: state,
loadSection: (context, section) {
store.dispatch(ViewSettings(context: context, section: section));
store.dispatch(ViewSettings(
context: context,
section: section,
userCompany: state.userCompany));
});
}