Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix(autocomplete): remove useless $hits variable (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss authored and francoischalifour committed Sep 18, 2018
1 parent 1ffd33f commit 1b04e8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scripts/__snapshots__/e2e-templates.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,6 @@ import autocomplete from 'autocomplete.js';
const client = algoliasearch('appId', 'apiKey');
const index = client.initIndex('indexName');
const $hits = document.querySelector('#hits');
autocomplete('#searchBox input[type=search]', { hint: false }, [
{
source: autocomplete.sources.hits(index, { hitsPerPage: 5 }),
Expand Down
2 changes: 0 additions & 2 deletions src/templates/Autocomplete.js/src/app.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import autocomplete from 'autocomplete.js';
const client = algoliasearch('{{appId}}', '{{apiKey}}');
const index = client.initIndex('{{indexName}}');

const $hits = document.querySelector('#hits');

autocomplete('#searchBox input[type=search]', { hint: false }, [
{
source: autocomplete.sources.hits(index, { hitsPerPage: 5 }),
Expand Down

0 comments on commit 1b04e8d

Please sign in to comment.