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 {