diff --git a/src/app/extensions/wishlists/store/wishlist/wishlist.effects.ts b/src/app/extensions/wishlists/store/wishlist/wishlist.effects.ts index ea91a365d8..7c627d60ea 100644 --- a/src/app/extensions/wishlists/store/wishlist/wishlist.effects.ts +++ b/src/app/extensions/wishlists/store/wishlist/wishlist.effects.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { Actions, Effect, ofType } from '@ngrx/effects'; import { Store, select } from '@ngrx/store'; -import { filter, map, mapTo, mergeMap, switchMap, withLatestFrom } from 'rxjs/operators'; +import { debounceTime, filter, map, mapTo, mergeMap, switchMap, withLatestFrom } from 'rxjs/operators'; import { SuccessMessage } from 'ish-core/store/messages'; import { selectRouteParam } from 'ish-core/store/router'; @@ -188,6 +188,7 @@ export class WishlistEffects { loadWishlistsAfterLogin$ = this.store.pipe( select(getUserAuthorized), whenTruthy(), + debounceTime(1000), mapTo(new wishlistsActions.LoadWishlists()) );