mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Refactor distinctUntilChanged to use a custom equality check in pickup-shelf-details.store.ts
This commit is contained in:
@@ -70,7 +70,7 @@ export class PickupShelfDetailsStore extends ComponentStore<PickupShelfDetailsSt
|
||||
this.select((s) => 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() {
|
||||
|
||||
Reference in New Issue
Block a user