Skip to content

Commit fb6df3e

Browse files
committed
Minor fix in PageComposer
1 parent f9ed9d5 commit fb6df3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/framework/components/PageComposer/PageComposer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const renderComponent = (userComponents, description, serviceComponentOptions, r
106106
rootProps[propertyName] = null;
107107
}
108108
} else {
109-
if (propertyValue) {
109+
if (typeof propertyValue !== 'undefined') {
110110
rootProps.push(cloneDeep(propertyValue));
111111
}
112112
}
@@ -155,9 +155,9 @@ const renderComponent = (userComponents, description, serviceComponentOptions, r
155155
|| type === constants.COMPONENT_PROPERTY_NUMBER_TYPE) {
156156
if (rootProps) {
157157
if (propertyName) {
158-
rootProps[propertyName] = propertyValue || null;
158+
rootProps[propertyName] = propertyValue;
159159
} else {
160-
if (propertyValue) {
160+
if (typeof propertyValue !== 'undefined') {
161161
if (rootProps.push) {
162162
rootProps.push(propertyValue);
163163
} else {

0 commit comments

Comments
 (0)