File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
composables/src/composables/useProduct Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ ProductsSearchParams> = {
3737
3838 Logger . debug ( '[Result]:' , { data : productDetailsResults } ) ;
3939
40- return productDetailsResults . data . products ;
40+ return productDetailsResults . data ? .products ;
4141
4242 case ProductsQueryType . List :
4343 default :
@@ -48,7 +48,7 @@ ProductsSearchParams> = {
4848
4949 Logger . debug ( '[Result]:' , { data : productListResults } ) ;
5050
51- return productListResults . data . products ;
51+ return productListResults . data ? .products ;
5252 }
5353 } ,
5454} ;
Original file line number Diff line number Diff line change 11<template >
22 <ProductsCarousel
3- v-if =" !loading && products.length > 0 "
3+ v-if =" !loading && products && products.length "
44 :products =" products"
55 :title =" $t('Match it with')"
66 />
Original file line number Diff line number Diff line change 11<template >
22 <ProductsCarousel
3- v-if =" !loading && products.length > 0 "
3+ v-if =" !loading && products && products.length "
44 :products =" products"
55 :title =" $t('Other products you might like')"
66 />
You can’t perform that action at this time.
0 commit comments