File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ module.exports = {
7070 [ '/guide/configuration' , 'Configuration' ] ,
7171 [ '/guide/override-queries' , 'Override queries' ] ,
7272 [ '/guide/testing' , 'Testing' ] ,
73- [ '/guide/recaptcha' , 'ReCaptcha' ]
73+ [ '/guide/recaptcha' , 'ReCaptcha' ] ,
74+ [ '/guide/testing' , 'Testing' ]
7475 ]
7576 } ,
7677 {
Original file line number Diff line number Diff line change 253253 </template >
254254 <template #actions >
255255 <SfButton
256- class =" sf-button--text products__product-card-horizontal__add-to-wishlist"
256+ class =" sf-button--text desktop-only"
257+ style =" margin : 0 0 1rem auto ; display : block "
257258 @click =" addItemToWishlist(product)"
258259 >
259260 {{ isInWishlist({product}) ? $t('Remove from Wishlist') : $t('Save for later') }}
@@ -646,12 +647,16 @@ export default defineComponent({
646647
647648 const tags = [{ prefix: CacheTagPrefix .View , value: ' category' }];
648649 // eslint-disable-next-line no-underscore-dangle
649- const productTags = products .value .map ((product ) => ({ prefix: CacheTagPrefix .Product , value: product .uid }));
650+ const productTags = products .value .map ((product ) => {
651+ return { prefix: CacheTagPrefix .Product , value: product .uid };
652+ });
650653
651- const categoriesTags = categoryTree .value .items .map ((category ) => ({ prefix: CacheTagPrefix .Category , value: category .slug }));
654+ const categoriesTags = categoryTree .value .items .map ((category ) => {
655+ return { prefix: CacheTagPrefix .Category , value: category .slug };
656+ });
652657
653658 // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
654- addTags ([ ... tags, ... productTags, ... categoriesTags] );
659+ addTags (tags . concat ( productTags, categoriesTags) );
655660 });
656661
657662 const { getMagentoImage , imageSizes } = useImage ();
You can’t perform that action at this time.
0 commit comments