diff --git a/app/components/search/search-menu-desktop.vue b/app/components/search/search-menu-desktop.vue index b3c14b6..31469ca 100644 --- a/app/components/search/search-menu-desktop.vue +++ b/app/components/search/search-menu-desktop.vue @@ -43,24 +43,6 @@ const closeSearch = () => { emit('closeSearch'); }; -// Helpers -const { getColorOption } = useProductHelpers(); - -// Computed -const productsWithOptions = computed(() => - props.products.map((product) => { - const options = product.options; - const colorOption = getColorOption(options); - const colorOptionName = colorOption?.optionValues[0]?.name; - - return { - ...product, - colorOption, - colorOptionName - }; - }) -); - // Watchers watch( () => appStore.searchMenuOpen, @@ -105,58 +87,32 @@ watch(
- {{ product.title }} ({{ product.colorOptionName }}) -
- {{ product?.title }} -+ {{ product.title }} ({{ colorOptionName }}) +
+{{ product.title }}
+