@usereactify/search 3.0.0-beta.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,8 @@ const ResultListInner = (props) => {
59
59
  return (react_1.default.createElement(react_1.default.Fragment, null,
60
60
  renderBefore && renderBefore(reactivesearchResultProps),
61
61
  react_1.default.createElement("section", { className: listClassName, style: styleProp }, reactivesearchResultProps.data.map((result, key) => {
62
- if (elastic_1.ElasticDocumentType.Product === result.type) {
62
+ // @todo result.type is missing in v1 indexes, this check ensures that they are assumed to be products
63
+ if (elastic_1.ElasticDocumentType.Product === result.type || !result.type) {
63
64
  return (react_1.default.createElement(ResultCard_1.ResultCard, { key: result._id, product: result, document: result, pagePosition: key + 1, render: renderResultCard }));
64
65
  }
65
66
  if (!!enableCallouts && elastic_1.ElasticDocumentType.Callout === result.type) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "3.0.0-beta.1",
4
+ "version": "3.0.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",