Skip to content

Commit 37dfe2f

Browse files
committed
Add page node type
1 parent 4c34129 commit 37dfe2f

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/framework/commons/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = {
4444
COMPONENT_PROPERTY_ONE_OF_TYPE: 'COMPONENT_PROPERTY_ONE_OF_TYPE',
4545

4646
PAGE_COMPONENT_TYPE: 'PAGE_COMPONENT_TYPE',
47+
PAGE_NODE_TYPE: 'PAGE_NODE_TYPE',
4748

4849
// do not change these values - they are used in webcodesk debugger
4950
DEBUG_MSG_APPLICATION_START_EVENT: 'onApplicationStart',

src/framework/components/ComponentComposer/ComponentComposer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const renderComponent = (userComponents, description, rootProps) => {
5555
// only placeholder component can be the root element
5656
rootProps = newElement;
5757
}
58-
} else if (type === constants.PAGE_COMPONENT_TYPE) {
58+
} else if (type === constants.PAGE_COMPONENT_TYPE || type === constants.PAGE_NODE_TYPE) {
5959
let newElement;
6060
const component = get(userComponents, componentName, null);
6161
if (component) {

src/framework/components/PageComposer/PageComposer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const renderComponent = (userComponents, description, serviceComponentOptions, r
6060
// only placeholder component can be the root element
6161
rootProps = newElement;
6262
}
63-
} else if (type === constants.PAGE_COMPONENT_TYPE) {
63+
} else if (type === constants.PAGE_COMPONENT_TYPE || type === constants.PAGE_NODE_TYPE) {
6464
let newElement;
6565
const component = get(userComponents, componentName, null);
6666
if (component) {

0 commit comments

Comments
 (0)