From 7e77d43fc5c9d1286377f2ca9f96786a5f62b709 Mon Sep 17 00:00:00 2001 From: Fifciuu Date: Mon, 11 Jan 2021 13:03:42 +0100 Subject: [PATCH] fix: wishlist --- .../src/helpers/commercetoolsLink/restrictedOperations.ts | 3 ++- packages/core/core/src/factories/useWishlistFactory.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts b/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts index 0edc5109953..f3623e64b35 100644 --- a/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts +++ b/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts @@ -1,7 +1,8 @@ /* istanbul ignore file */ const restrictedOperations = { anonymous: [ - 'createCart' + 'createCart', + 'createMyShoppingList' ], user: [ 'customerSignMeIn', diff --git a/packages/core/core/src/factories/useWishlistFactory.ts b/packages/core/core/src/factories/useWishlistFactory.ts index 2d3d606bcf9..80f960ec064 100644 --- a/packages/core/core/src/factories/useWishlistFactory.ts +++ b/packages/core/core/src/factories/useWishlistFactory.ts @@ -3,7 +3,7 @@ import { Ref, computed } from '@vue/composition-api'; import { sharedRef, Logger, generateContext } from '../utils'; export interface UseWishlistFactoryParams extends FactoryParams { - load: (context: Context, params: { customQuery?: CustomQuery }) => Promise; + load: (context: Context, params: { customQuery?: any }) => Promise; addItem: ( context: Context, params: { @@ -84,7 +84,6 @@ export const useWishlistFactory = ( const load = async ({ customQuery } = { customQuery: undefined }) => { Logger.debug('useWishlist.load'); - if (wishlist.value) return; try {