Skip to content

Commit

Permalink
fix dispatch on modals
Browse files Browse the repository at this point in the history
  • Loading branch information
ucswift committed Apr 15, 2022
1 parent 447142f commit 2843e2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/features/home/effects/home.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ export class HomeEffects {
this.actions$.pipe(
ofType<homeAction.OpenSetPersonStatusModal>(homeAction.HomeActionTypes.OPEN_SETPERSONSTATUSMODAL),
exhaustMap((data) => this.runModal(SetPersonStatusModalComponent, "md"))
)
),
{ dispatch: false }
);

savePersonnelStatus$ = createEffect(() =>
Expand Down Expand Up @@ -658,7 +659,8 @@ export class HomeEffects {
this.actions$.pipe(
ofType<homeAction.OpenSetPersonStaffingModal>(homeAction.HomeActionTypes.OPEN_SETPERSONSTAFFINGMODAL),
exhaustMap((data) => this.runModal(SetPersonStaffingModalComponent, "md"))
)
),
{ dispatch: false }
);


Expand Down Expand Up @@ -750,7 +752,7 @@ export class HomeEffects {
size: size,
});

return from(this._modalRef.result);
return this._modalRef.result;
};

closeModal = () => {
Expand Down

0 comments on commit 2843e2d

Please sign in to comment.