Update DesignSpace.js

This commit is contained in:
Luis Fernando Molina committed 2020-09-09 17:43:32 +02:00
1 parent 0798257b97
commit e43438db81
1 file changed
+6 -2
+6 -2
View File
@@ -39,8 +39,12 @@ function newDesignSpace() {
for (let i = 0; i < APP_SCHEMA_ARRAY.length; i++) {
let nodeDefinition = APP_SCHEMA_ARRAY[i]
let iconName = nodeDefinition.icon
if (iconName !== undefined) {
let icon = thisObject.iconCollection.get(iconName)
if (iconName === undefined) {
iconName = nodeDefinition.type.toLowerCase()
iconName = iconName.split(" ").join("-")
}
let icon = thisObject.iconCollection.get(iconName)
if (icon !== undefined) {
thisObject.iconByUiObjectType.set(nodeDefinition.type, icon)
}
}