my bad
This commit is contained in:
parent
13e1106a4e
commit
6ce25e2361
|
@ -73,7 +73,7 @@ export class ProfileComponent implements OnInit, OnDestroy {
|
||||||
phone: modifyValue.phone,
|
phone: modifyValue.phone,
|
||||||
companyName: modifyValue.companyName,
|
companyName: modifyValue.companyName,
|
||||||
};
|
};
|
||||||
this.modifyStore.dispatch(new ModifyStore.Modify({ member }));
|
this.modifyStore.dispatch(new ModifyStore.Modify(member));
|
||||||
|
|
||||||
const modifiedMemberSubscription$ = this.modifiedMember$.subscribe(
|
const modifiedMemberSubscription$ = this.modifiedMember$.subscribe(
|
||||||
(m: Member) => {
|
(m: Member) => {
|
||||||
|
|
|
@ -37,7 +37,7 @@ export class Effects {
|
||||||
.map((action: Modify) => action.payload)
|
.map((action: Modify) => action.payload)
|
||||||
.exhaustMap(payload =>
|
.exhaustMap(payload =>
|
||||||
this.memberService
|
this.memberService
|
||||||
.modify(payload.member)
|
.modify(payload)
|
||||||
.map(_member => new ModifySuccess(_member))
|
.map(_member => new ModifySuccess(_member))
|
||||||
.catch(error => of(new ModifyFailure(error)))
|
.catch(error => of(new ModifyFailure(error)))
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user