From f97253e82a6d194ff23930502d460cf716b72e0b Mon Sep 17 00:00:00 2001 From: Nino Date: Mon, 25 Nov 2024 15:31:24 +0100 Subject: [PATCH] Refactor distinctUntilChanged to use a custom equality check in pickup-shelf-details.store.ts --- .../src/page/pickup-shelf/store/pickup-shelf-details.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/isa-app/src/page/pickup-shelf/store/pickup-shelf-details.store.ts b/apps/isa-app/src/page/pickup-shelf/store/pickup-shelf-details.store.ts index c27fae39d..b6277416a 100644 --- a/apps/isa-app/src/page/pickup-shelf/store/pickup-shelf-details.store.ts +++ b/apps/isa-app/src/page/pickup-shelf/store/pickup-shelf-details.store.ts @@ -70,7 +70,7 @@ export class PickupShelfDetailsStore extends ComponentStore s).pipe(switchMap((s) => this._listStore.itemsForPreview$(s))), ]).pipe( map(([orderItems, itemsForPreview]) => (orderItems?.length ? orderItems : itemsForPreview)), - distinctUntilChanged(isEqual), + distinctUntilChanged((a, b) => isEqual(a, b)), ); get orderItems() {