diff --git a/packages/theme/components/Header/SearchBar/SearchResults.vue b/packages/theme/components/Header/SearchBar/SearchResults.vue
index 84cf2fec1..c2294582f 100644
--- a/packages/theme/components/Header/SearchBar/SearchResults.vue
+++ b/packages/theme/components/Header/SearchBar/SearchResults.vue
@@ -35,7 +35,7 @@
>
@@ -154,12 +145,10 @@ import {
SfMenuItem,
SfButton,
} from '@storefront-ui/vue';
-import { defineComponent, computed } from '@nuxtjs/composition-api';
+import { defineComponent } from '@nuxtjs/composition-api';
import type { PropType } from '@nuxtjs/composition-api';
import productGetters from '~/modules/catalog/product/getters/productGetters';
-import { useUiHelpers, useImage } from '~/composables';
-import { useWishlist } from '~/modules/wishlist/composables/useWishlist';
-import { useUser } from '~/modules/customer/composables/useUser';
+import { useImage } from '~/composables';
import SvgImage from '~/components/General/SvgImage.vue';
import type { Product } from '~/modules/catalog/product/types';
@@ -183,27 +172,13 @@ export default defineComponent({
default: () => [],
},
},
- setup(props) {
- const { isAuthenticated } = useUser();
- const { isInWishlist, addOrRemoveItem: addOrRemoveWishlistItem } = useWishlist();
-
- const th = useUiHelpers();
- const searchResultsWithWishlistInfo = computed(() => props.searchResults?.map((product) => ({
- ...product,
- isInWishlist: isInWishlist({ product }),
- })));
-
+ setup() {
const { getMagentoImage, imageSizes } = useImage();
return {
- th,
productGetters,
- addOrRemoveWishlistItem,
- isInWishlist,
- isAuthenticated,
getMagentoImage,
imageSizes,
- searchResultsWithWishlistInfo,
};
},
});