fix load success action

This commit is contained in:
Róbert Kiss
2017-12-14 22:50:24 +01:00
parent d09c46af42
commit 2bf7d545a2
2 changed files with 2 additions and 2 deletions
@@ -186,9 +186,10 @@ export class UserConfigEffects {
});
@Effect() loadUserConfigurationSuccess$ = this.actions$
.ofType(ActionTypes.SAVE_USER_CONFIG_SUCCESS)
.ofType(ActionTypes.LOAD_USER_CONFIG_SUCCESS)
.withLatestFrom(this.store.select(autoWriteUserConfiguration))
.switchMap(([action, autoWriteUserConfig]) => {
this.logService.debug('[UserConfigEffect] LOAD_USER_CONFIG_SUCCESS', {autoWriteUserConfig});
if (autoWriteUserConfig) {
return Observable.of(new SaveConfigurationAction());
}