File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { html } from 'htm/preact' ;
22import algoliasearch from 'algoliasearch/lite' ;
3- import { autocomplete , getAlgoliaHits , highlightHit } from '@algolia/autocomplete-js' ;
3+ import { autocomplete , getAlgoliaResults , highlightHit } from '@algolia/autocomplete-js' ;
44import { createAlgoliaInsightsPlugin } from '@algolia/autocomplete-plugin-algolia-insights' ;
55import insightsClient from 'search-insights' ;
66
@@ -38,7 +38,7 @@ function initAutocomplete(item){
3838 return itemUrl ;
3939 } ,
4040 getItems ( ) {
41- return getAlgoliaHits ( {
41+ return getAlgoliaResults ( {
4242 searchClient,
4343 queries : [
4444 {
@@ -83,4 +83,4 @@ function initAutocomplete(item){
8383
8484}
8585
86- locations . forEach ( initAutocomplete ) ;
86+ locations . forEach ( initAutocomplete ) ;
You can’t perform that action at this time.
0 commit comments