This commit is contained in:
Hillel Coren 2019-10-07 11:15:30 +03:00
parent 346bdcdff6
commit 2b9ad98154
1 changed files with 1 additions and 4 deletions

View File

@ -188,10 +188,7 @@ Middleware<AppState> _saveGroup(GroupRepository repository) {
} else { } else {
store.dispatch(SaveGroupSuccess(group)); store.dispatch(SaveGroupSuccess(group));
} }
final groupUIState = store.state.groupUIState; action.completer.complete();
if (groupUIState.saveCompleter != null) {
groupUIState.saveCompleter.complete(group);
}
}).catchError((Object error) { }).catchError((Object error) {
print(error); print(error);
store.dispatch(SaveGroupFailure(error)); store.dispatch(SaveGroupFailure(error));