@sitecore-jss/sitecore-jss-react 21.4.0-canary.13 → 21.4.0-canary.14
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.
|
@@ -87,7 +87,7 @@ class BYOCComponent extends react_1.default.Component {
|
|
|
87
87
|
};
|
|
88
88
|
const fallbackComponent = this.props.missingComponentComponent ? (react_1.default.createElement(this.props.missingComponentComponent, Object.assign({}, unRegisteredComponentProps))) : (react_1.default.createElement(MissingComponent_1.MissingComponent, Object.assign({}, unRegisteredComponentProps)));
|
|
89
89
|
const ErrorComponent = this.props.errorComponent;
|
|
90
|
-
const isNull = Object.keys(props.fetchedData).length === 0;
|
|
90
|
+
const isNull = props.fetchedData && Object.keys(props.fetchedData).length === 0;
|
|
91
91
|
let componentProps = isNull ? null : props.fetchedData;
|
|
92
92
|
if (!componentProps) {
|
|
93
93
|
if ((_a = props.params) === null || _a === void 0 ? void 0 : _a.ComponentProps) {
|
|
@@ -58,7 +58,7 @@ export class BYOCComponent extends React.Component {
|
|
|
58
58
|
};
|
|
59
59
|
const fallbackComponent = this.props.missingComponentComponent ? (React.createElement(this.props.missingComponentComponent, Object.assign({}, unRegisteredComponentProps))) : (React.createElement(MissingComponent, Object.assign({}, unRegisteredComponentProps)));
|
|
60
60
|
const ErrorComponent = this.props.errorComponent;
|
|
61
|
-
const isNull = Object.keys(props.fetchedData).length === 0;
|
|
61
|
+
const isNull = props.fetchedData && Object.keys(props.fetchedData).length === 0;
|
|
62
62
|
let componentProps = isNull ? null : props.fetchedData;
|
|
63
63
|
if (!componentProps) {
|
|
64
64
|
if ((_a = props.params) === null || _a === void 0 ? void 0 : _a.ComponentProps) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-react",
|
|
3
|
-
"version": "21.4.0-canary.
|
|
3
|
+
"version": "21.4.0-canary.14",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"react-dom": "^18.2.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@sitecore-jss/sitecore-jss": "^21.4.0-canary.
|
|
66
|
+
"@sitecore-jss/sitecore-jss": "^21.4.0-canary.14",
|
|
67
67
|
"deep-equal": "^2.1.0",
|
|
68
68
|
"prop-types": "^15.8.1",
|
|
69
69
|
"style-attr": "^1.3.0"
|
|
70
70
|
},
|
|
71
71
|
"description": "",
|
|
72
72
|
"types": "types/index.d.ts",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6542419834ef8d088fd574baca815fc34c21355e",
|
|
74
74
|
"files": [
|
|
75
75
|
"dist",
|
|
76
76
|
"types"
|