@sitecore-jss/sitecore-jss
Advanced tools
Comparing version 22.4.0-canary.6 to 22.4.0-canary.7
@@ -212,5 +212,9 @@ "use strict"; | ||
if (updateComponent) { | ||
console.debug('Found rendering with uid %s to update. Updating with fields %o and params %o', eventArgs.details.uid, eventArgs.details.fields, eventArgs.details.params); | ||
updateComponent.fields = Object.assign(Object.assign({}, updateComponent.fields), eventArgs.details.fields); | ||
updateComponent.params = Object.assign(Object.assign({}, updateComponent.params), eventArgs.details.params); | ||
console.debug('Found component with uid %s to update. Update fields: %o. Update params: %o.', eventArgs.details.uid, eventArgs.details.fields, eventArgs.details.params); | ||
if (eventArgs.details.fields) { | ||
updateComponent.fields = Object.assign(Object.assign({}, updateComponent.fields), eventArgs.details.fields); | ||
} | ||
if (eventArgs.details.params) { | ||
updateComponent.params = Object.assign(Object.assign({}, updateComponent.params), eventArgs.details.params); | ||
} | ||
if (successCallback) | ||
@@ -217,0 +221,0 @@ successCallback(rootComponent); |
@@ -199,5 +199,9 @@ import isServer from '../utils/is-server'; | ||
if (updateComponent) { | ||
console.debug('Found rendering with uid %s to update. Updating with fields %o and params %o', eventArgs.details.uid, eventArgs.details.fields, eventArgs.details.params); | ||
updateComponent.fields = Object.assign(Object.assign({}, updateComponent.fields), eventArgs.details.fields); | ||
updateComponent.params = Object.assign(Object.assign({}, updateComponent.params), eventArgs.details.params); | ||
console.debug('Found component with uid %s to update. Update fields: %o. Update params: %o.', eventArgs.details.uid, eventArgs.details.fields, eventArgs.details.params); | ||
if (eventArgs.details.fields) { | ||
updateComponent.fields = Object.assign(Object.assign({}, updateComponent.fields), eventArgs.details.fields); | ||
} | ||
if (eventArgs.details.params) { | ||
updateComponent.params = Object.assign(Object.assign({}, updateComponent.params), eventArgs.details.params); | ||
} | ||
if (successCallback) | ||
@@ -204,0 +208,0 @@ successCallback(rootComponent); |
{ | ||
"name": "@sitecore-jss/sitecore-jss", | ||
"version": "22.4.0-canary.6", | ||
"version": "22.4.0-canary.7", | ||
"main": "dist/cjs/index.js", | ||
@@ -69,3 +69,3 @@ "module": "dist/esm/index.js", | ||
"types": "types/index.d.ts", | ||
"gitHead": "7b4705679a487ac6a21b5a53a55cdb5da5c20904", | ||
"gitHead": "1060868d7fb3273beab3016f2e4b3b2787aaf2bd", | ||
"files": [ | ||
@@ -72,0 +72,0 @@ "dist", |
434303
9618