From 5b8e16ceb7f59d5ee2eb6f536010cb89c1677c26 Mon Sep 17 00:00:00 2001 From: anjana-bl <84384970+anjana-bl@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:57:05 +0530 Subject: [PATCH] bugfix/CXSPA-9252: OMF+My Account V2: Order History Page doesnot load (#19866) --- feature-libs/order/core/store/effects/order-by-id.effect.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature-libs/order/core/store/effects/order-by-id.effect.ts b/feature-libs/order/core/store/effects/order-by-id.effect.ts index 12831b38403..363ff1ec954 100644 --- a/feature-libs/order/core/store/effects/order-by-id.effect.ts +++ b/feature-libs/order/core/store/effects/order-by-id.effect.ts @@ -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'; @@ -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);