algairim commented on a change in pull request #222:
URL: https://github.com/apache/brooklyn-ui/pull/222#discussion_r650825085
##########
File path:
ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
##########
@@ -230,7 +230,7 @@ function BlueprintService($log, $q, $sce, paletteApi,
iconGenerator, dslService,
}
function lookup(entity, id, any = false) {
- if (entity._id === id) {
+ if ((entity._id === id) || (entity.id === id)) {
Review comment:
My point is that `entity._id` is unique, to identify and reference
entity model/object in the tree, when `entity.id` is not necessarily unique.
Please double check that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]