Skip to content

Commit c4f3420

Browse files
committed
MAGE-932 Remove unneeded var
1 parent cf03950 commit c4f3420

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

view/frontend/web/instantsearch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ define([
481481
placeholder: algoliaConfig.translations.searchFor,
482482
showSubmit : false,
483483
queryHook : (inputValue, search) => {
484-
const encodedHtml =
485-
algolia.htmlspecialcharsEncode(inputValue);
486484
if (
487485
algoliaConfig.isSearchPage &&
488486
!algoliaConfig.request.categoryId &&
@@ -491,7 +489,7 @@ define([
491489
$('.page-title-wrapper span.base').html(
492490
algoliaConfig.translations.searchTitle +
493491
": '" +
494-
encodedHtml +
492+
algolia.htmlspecialcharsEncode(inputValue) +
495493
"'"
496494
);
497495
}

0 commit comments

Comments
 (0)