Skip to content

Commit e45913c

Browse files
author
Constance
authored
Merge pull request #43 from elastic/fix
Change the default view for Facets
2 parents 2f2c46e + f97a5db commit e45913c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/App.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
Sorting,
1515
WithSearch
1616
} from "@elastic/react-search-ui";
17-
import { Layout, SingleLinksFacet } from "@elastic/react-search-ui-views";
17+
import { Layout } from "@elastic/react-search-ui-views";
1818
import "@elastic/react-search-ui-views/lib/styles/styles.css";
1919

2020
import {
@@ -61,12 +61,7 @@ export default function App() {
6161
/>
6262
)}
6363
{getFacetFields().map(field => (
64-
<Facet
65-
key={field}
66-
field={field}
67-
label={field}
68-
view={SingleLinksFacet}
69-
/>
64+
<Facet key={field} field={field} label={field} />
7065
))}
7166
</div>
7267
}

0 commit comments

Comments
 (0)