Skip to content

Commit

Permalink
es-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joemcelroy committed Mar 13, 2024
1 parent aa9af3c commit e99ce38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/api-connectors-elasticsearch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const connector = new ElasticsearchAPIConnector(
if (!requestState.searchTerm) return requestBody;

// transforming the query before sending to Elasticsearch using the requestState and queryConfig
const searchFields = queryConfig.search_fields
const searchFields = queryConfig.search_fields;

requestBody.query = {
multi_match: {
Expand Down
6 changes: 3 additions & 3 deletions docs/api-react-components-result.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const CustomResultView = ({
result,
onClickLink
}: {
result: SearchResult;
onClickLink: () => void;
result: SearchResult,
onClickLink: () => void
}) => (
<li className="sui-result">
<div className="sui-result__header">
Expand All @@ -95,7 +95,7 @@ const CustomResultView = ({
</li>
);

<Results resultView={CustomResultView}/>
<Results resultView={CustomResultView} />;
```

The following properties are available in the view:
Expand Down
6 changes: 1 addition & 5 deletions examples/sandbox/src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ export default function Router() {
<Route exact path="/engines" component={Engines} />

{/* Examples */}
<Route
exact
path="/search-as-you-type"
component={SearchAsYouType}
/>
<Route exact path="/search-as-you-type" component={SearchAsYouType} />
<Route
exact
path="/customizing-styles-and-html"
Expand Down

0 comments on commit e99ce38

Please sign in to comment.