@cmpsr/contentful-core
Advanced tools
Comparing version 0.1.7 to 0.1.8
# @cmpsr/contentful-core | ||
## 0.1.8 | ||
### Patch Changes | ||
- 4da10b9: Adds null returns for null data | ||
## 0.1.7 | ||
@@ -4,0 +10,0 @@ |
@@ -38,3 +38,5 @@ "use strict"; | ||
}); | ||
if (!data) return null; | ||
const key = Object.keys(data)[0]; | ||
if (!key) return null; | ||
const dataToParse = key.indexOf('Collection') >= 0 ? data[key].items[0] : data[key]; | ||
@@ -41,0 +43,0 @@ return /*#__PURE__*/_react.default.createElement(_ComponentRenderer.ComponentRenderer, { |
{ | ||
"name": "@cmpsr/contentful-core", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Base Composer components for standing up a React/NextJS app that can dynamically render components based on Contentful Model types mapped to components and queries.", | ||
@@ -43,3 +43,3 @@ "author": "Ryan Hefner <hi@ryanhefner.com>", | ||
}, | ||
"gitHead": "ea6934e997d7367347a6cdb63d281284f936490e" | ||
"gitHead": "21b508875ce8874f6ebd22f1c01247f9386cbf89" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45438
864