Skip to content

Commit 078cb9a

Browse files
committed
Fix minor bug
1 parent ef2ac65 commit 078cb9a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/framework/components/ComponentComposer/ComponentComposer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ const renderComponent = (userComponents, description, rootProps) => {
143143
|| type === constants.COMPONENT_PROPERTY_ANY_TYPE
144144
|| type === constants.COMPONENT_PROPERTY_NUMBER_TYPE) {
145145
if (rootProps) {
146-
if (propertyName && propertyName !== constants.COMPONENT_PROPERTY_DO_NOT_USE_IN_FLOWS_NAME) {
147-
rootProps[propertyName] = propertyValue;
146+
if (propertyName) {
147+
if (propertyName !== constants.COMPONENT_PROPERTY_DO_NOT_USE_IN_FLOWS_NAME) {
148+
rootProps[propertyName] = propertyValue;
149+
}
148150
} else {
149151
if (typeof propertyValue !== 'undefined') {
150152
if (rootProps.push) {

src/framework/components/PageComposer/PageComposer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ const renderComponent = (userComponents, description, serviceComponentOptions, r
160160
|| type === constants.COMPONENT_PROPERTY_ANY_TYPE
161161
|| type === constants.COMPONENT_PROPERTY_NUMBER_TYPE) {
162162
if (rootProps) {
163-
if (propertyName && propertyName !== constants.COMPONENT_PROPERTY_DO_NOT_USE_IN_FLOWS_NAME) {
164-
rootProps[propertyName] = propertyValue;
163+
if (propertyName) {
164+
if (propertyName !== constants.COMPONENT_PROPERTY_DO_NOT_USE_IN_FLOWS_NAME) {
165+
rootProps[propertyName] = propertyValue;
166+
}
165167
} else {
166168
if (typeof propertyValue !== 'undefined') {
167169
if (rootProps.push) {

0 commit comments

Comments
 (0)