commit | 5309892e04654e5af6a27fcb9527906ba7088475 | [log] [tgz] |
---|---|---|
author | Alex Heneveld <alex.heneveld@cloudsoftcorp.com> | Fri Dec 13 10:58:53 2019 +0000 |
committer | Alex Heneveld <alex.heneveld@cloudsoftcorp.com> | Fri Dec 13 10:58:53 2019 +0000 |
tree | ee1e26af91876b149339a6b4a4de0005e37f9b97 | |
parent | bab55c8486e1247c19499eb68e6580c82ec5a4f6 [diff] |
composer - fix potential NPE if config has null, and allow wrap of long line
diff --git a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js index 5e43ab7..eec14e5 100644 --- a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js +++ b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
@@ -700,7 +700,7 @@ }); relationships = Array.from(entity.config.values()) - .filter(config => config[DSL_ENTITY_SPEC] && config[DSL_ENTITY_SPEC] instanceof Entity) + .filter(config => config && config[DSL_ENTITY_SPEC] && config[DSL_ENTITY_SPEC] instanceof Entity) .map(config => config[DSL_ENTITY_SPEC]) .reduce((relationships, spec) => { return relationships.concat(getRelationships(spec));
diff --git a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.less b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.less index 3cc94b9..00abd58 100644 --- a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.less +++ b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.less
@@ -91,6 +91,9 @@ .entity-type-header { font-size: 105%; margin-right: 1em; + // allow this to wrap, as it's important to be able to read it; + // break anywhere in case it's of the form my.type.HasGotAVeryVeryVeryLongName + word-break: break-all; } .label.version { vertical-align: 2px;