Skip to content

Commit d74994c

Browse files
committed
MAGE-899 Remove lingering global source option refs
1 parent c008a5d commit d74994c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

view/frontend/web/js/autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ define([
306306
* @param source - default values for the source object
307307
* @returns source object
308308
*/
309-
buildAutocompleteSourceProducts(section, source, options) {
309+
buildAutocompleteSourceProducts(section, source) {
310310
source.options = this.buildProductSourceOptions(section, source.options);
311311
source.templates = {
312312
noResults: ({html}) => {
@@ -411,7 +411,7 @@ define([
411411
section.name === 'categories' &&
412412
algoliaConfig.showCatsNotIncludedInNavigation === false
413413
) {
414-
options.numericFilters = 'include_in_menu=1';
414+
source.options.numericFilters = 'include_in_menu=1';
415415
}
416416
source.templates = {
417417
noResults: ({html}) => {

0 commit comments

Comments
 (0)