Skip to content

Commit

Permalink
bugfix/CXSPA-9252: OMF+My Account V2: Order History Page doesnot load (
Browse files Browse the repository at this point in the history
  • Loading branch information
anjana-bl authored Jan 16, 2025
1 parent 1c6e2f9 commit 5b8e16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature-libs/order/core/store/effects/order-by-id.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Actions, createEffect, ofType } from '@ngrx/effects';
import { LoggerService, tryNormalizeHttpError } from '@spartacus/core';
import { Order } from '@spartacus/order/root';
import { Observable, of } from 'rxjs';
import { catchError, concatMap, map } from 'rxjs/operators';
import { catchError, mergeMap, map } from 'rxjs/operators';
import { OrderHistoryConnector } from '../../connectors/order-history.connector';
import { OrderActions } from '../actions/index';

Expand All @@ -25,7 +25,7 @@ export class OrderByIdEffect {
this.actions$.pipe(
ofType(OrderActions.LOAD_ORDER_BY_ID),
map((action: OrderActions.LoadOrderById) => action.payload),
concatMap(({ userId, code }) => {
mergeMap(({ userId, code }) => {
return this.orderConnector.get(userId, code).pipe(
map((order: Order) => {
return new OrderActions.LoadOrderByIdSuccess(order);
Expand Down

0 comments on commit 5b8e16c

Please sign in to comment.