From 87a65ec4effe703a8cc74f2a21f8ff53af350729 Mon Sep 17 00:00:00 2001 From: kpawelczak <42094017+kpawelczak@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:29:54 +0200 Subject: [PATCH] fix: 'this' is undefined in ProductEffects.productLoadEffect (#17853) --- projects/core/src/product/store/effects/product.effect.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/core/src/product/store/effects/product.effect.ts b/projects/core/src/product/store/effects/product.effect.ts index 87582569f82..3192d8fe193 100644 --- a/projects/core/src/product/store/effects/product.effect.ts +++ b/projects/core/src/product/store/effects/product.effect.ts @@ -4,10 +4,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { Injectable, inject } from '@angular/core'; +import { inject, Injectable } from '@angular/core'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { Action } from '@ngrx/store'; -import { Observable, merge, of } from 'rxjs'; +import { merge, Observable, of } from 'rxjs'; import { catchError, map, mergeMap } from 'rxjs/operators'; import { AuthActions } from '../../../auth/user-auth/store/actions'; import { LoggerService } from '../../../logger'; @@ -49,7 +49,7 @@ export class ProductEffects { merge( ...this.productConnector .getMany(products) - .map(this.productLoadEffect) + .map((productLoad) => this.productLoadEffect(productLoad)) ) ), withdrawOn(this.contextChange$)