update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git] / skyquake / plugins / composer / src / src / libraries / model / DescriptorModelMetaProperty.js
index e064457..968bc24 100644 (file)
@@ -78,8 +78,8 @@ export default {
                return /string|int/.test(property['data-type']) || Property.isEnumeration(property) || Property.isGuid(property);
        },
        defaultValue(property = {}) {
-               if (property.defaultValue) {
-                       return property.defaultValue;
+               if (property['default-value']) {
+                       return property['default-value'];
                }
                if (this.isObject(property)) {
                        return {};
@@ -200,6 +200,9 @@ export default {
                        if (property.type === 'leaf') {
                                return defaultValue(property);
                        }
+                       if (property.type === 'leaf_list' ) {
+                               return "";
+                       }
                        if (/list/.test(property.type)) {
                                property.type = 'container';
                        }