Skip to content

Commit 1b04e8d

Browse files
samoussfrancoischalifour
authored andcommitted
fix(autocomplete): remove useless $hits variable (#252)
1 parent 1ffd33f commit 1b04e8d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

scripts/__snapshots__/e2e-templates.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,6 @@ import autocomplete from 'autocomplete.js';
11961196
const client = algoliasearch('appId', 'apiKey');
11971197
const index = client.initIndex('indexName');
11981198
1199-
const $hits = document.querySelector('#hits');
1200-
12011199
autocomplete('#searchBox input[type=search]', { hint: false }, [
12021200
{
12031201
source: autocomplete.sources.hits(index, { hitsPerPage: 5 }),

src/templates/Autocomplete.js/src/app.js.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import autocomplete from 'autocomplete.js';
44
const client = algoliasearch('{{appId}}', '{{apiKey}}');
55
const index = client.initIndex('{{indexName}}');
66

7-
const $hits = document.querySelector('#hits');
8-
97
autocomplete('#searchBox input[type=search]', { hint: false }, [
108
{
119
source: autocomplete.sources.hits(index, { hitsPerPage: 5 }),

0 commit comments

Comments
 (0)