Skip to content

Commit

Permalink
Merge pull request #42 from helsingborg-stad/fix/corrected-functions
Browse files Browse the repository at this point in the history
fix: corrected functions
  • Loading branch information
NiclasNorin authored Sep 16, 2024
2 parents 3022e9c + e21afbd commit 6bfcef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"webpack-remove-empty-scripts": "^0.7.3"
},
"dependencies": {
"instantsearch.js": "^4.7.0"
"algoliasearch": "^5.4.1",
"instantsearch.js": "^4.74.1"
}
}
}
5 changes: 2 additions & 3 deletions source/js/algolia-index-js-searchpage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import algoliasearch from 'algoliasearch/lite';
import { liteClient } from 'algoliasearch/lite';
import instantsearch from 'instantsearch.js';
import { connectSearchBox, connectPagination, connectStats } from 'instantsearch.js/es/connectors';
import { hits, configure} from 'instantsearch.js/es/widgets';

document.addEventListener('DOMContentLoaded', function() {

const searchClient = algoliasearch(
const searchClient = liteClient(
algoliaSearchData.applicationId,
algoliaSearchData.publicApiKey,
{...algoliaSearchData.clientConfig}
Expand Down

0 comments on commit 6bfcef5

Please sign in to comment.