This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 1415e46 Add fix for disappearing link
new 23d9f17 Merge pull request #285 from iuliana/fix/dissapearing-link
1415e46 is described below
commit 1415e46d4e6e61fcb4ed175cc3aea8fc9aa2e2ec
Author: iuliana <[email protected]>
AuthorDate: Tue Sep 14 16:07:16 2021 +0100
Add fix for disappearing link
---
.../app/components/providers/blueprint-service.provider.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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 29ee3eb..e2d0aa4 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
@@ -84,13 +84,12 @@ function BlueprintService($log, $q, $sce, paletteApi,
iconGenerator, dslService,
Object.keys(config)
.filter(objectKey => config[objectKey] instanceof
Dsl)
.reduce((set, objectKey) => {
- if(config[key]) { // when config[objectKey]
value is a DSL, but the config does not have a [key] property
- config[key].relationships.forEach((entity)
=> {
+
config[objectKey].relationships.forEach((entity) => {
if (entity !== null) {
+ // name is the name of a complex
relationship, and it consists of a property name, not its members. That is why
here, name is set to 'key' not 'objectKey'.
set.add({entity: entity, name:
key});
}
});
- }
return set;
}, set);
}