Skip to content

Commit 266620a

Browse files
committed
MAGE-656 - remove unnecessary config variable declaration and call algoliaConfig directly
1 parent 18a8021 commit 266620a

File tree

1 file changed

+1
-2
lines changed
  • view/frontend/web/internals/template/recommend

1 file changed

+1
-2
lines changed

view/frontend/web/internals/template/recommend/products.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ define([], function () {
44
let correctFKey = getCookie('form_key');
55
let action = algoliaConfig.recommend.addToCartParams.action + 'product/' + item.objectID + '/';
66
if(correctFKey != "" && algoliaConfig.recommend.addToCartParams.formKey != correctFKey) {
7-
config.recommend.addToCartParams.formKey = correctFKey;
7+
algoliaConfig.recommend.addToCartParams.formKey = correctFKey;
88
}
9-
this.config = algoliaConfig;
109
this.defaultIndexName = algoliaConfig.indexName + '_products';
1110
return html`<div class="product-details">
1211
<a class="recommend-item product-url" href="${item.url}" data-objectid=${item.objectID} data-index=${this.defaultIndexName}>

0 commit comments

Comments
 (0)