Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Mar 9, 2023
1 parent f9b7d01 commit a47a0f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({

> Available as of Typesense Server `v0.25.0.rc12`
This [`dynamicWidgets`](https://www.algolia.com/doc/api-reference/widgets/dynamic-facets/js/) widget works out of the box with no additional changes,
but if you want to control the order in which these facets are displayed in the UI
This [`dynamicWidgets`](https://www.algolia.com/doc/api-reference/widgets/dynamic-facets/js/) widget works out of the box with no additional changes,
but if you want to control the order in which these facets are displayed in the UI
Instantsearch expects a parameter called [`renderingContent`](https://www.algolia.com/doc/api-reference/api-parameters/renderingContent/) to be set.

```js
Expand All @@ -386,7 +386,8 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
},
],
},
renderingContent: { // <<===== Add this, only if you want to control the order of the widgets displayed by dynamicWidgets
renderingContent: {
// <<===== Add this, only if you want to control the order of the widgets displayed by dynamicWidgets
facetOrdering: {
facets: {
order: ["size", "brand"], // <<===== Change this as needed
Expand Down
1 change: 0 additions & 1 deletion test/SearchResponseAdpater.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SearchResponseAdapter } from "../src/SearchResponseAdapter";
import { Configuration } from "../src/Configuration";
import typesenseResponse from "./support/data/typesense-search-response.json";

describe("SearchResponseAdapter", () => {
describe("._adaptHighlightResult", () => {
Expand Down

0 comments on commit a47a0f5

Please sign in to comment.