Repository: atlas Updated Branches: refs/heads/master cbc4b8a3f -> d7b4d5852
ATLAS-2754: UI - Atlas front end fail to show the input and output entity Signed-off-by: nixonrodrigues <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/d7b4d585 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/d7b4d585 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/d7b4d585 Branch: refs/heads/master Commit: d7b4d5852afd7279b9fd3d1ce5aba073680b909b Parents: cbc4b8a Author: Abhishek Kadam <[email protected]> Authored: Tue Jun 12 18:43:07 2018 +0530 Committer: nixonrodrigues <[email protected]> Committed: Wed Jun 13 16:26:57 2018 +0530 ---------------------------------------------------------------------- dashboardv2/public/js/utils/CommonViewFunction.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/d7b4d585/dashboardv2/public/js/utils/CommonViewFunction.js ---------------------------------------------------------------------- diff --git a/dashboardv2/public/js/utils/CommonViewFunction.js b/dashboardv2/public/js/utils/CommonViewFunction.js index 3d39eb8..241b812 100644 --- a/dashboardv2/public/js/utils/CommonViewFunction.js +++ b/dashboardv2/public/js/utils/CommonViewFunction.js @@ -176,7 +176,14 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum fetchInputOutputValue(fetchId); tempLink += '<div data-id="' + fetchId + '"><div class="value-loader"></div></div>'; } else { - tempLink += '<div data-id="' + rAttrValue.guid + '"><a href="#!/detailPage/' + rAttrValue.guid + '">' + Utils.getName(rAttrValue) + '</a></div>'; + if (_.isArray(rAttrValue) && rAttrValue.length) { + var attrVal = _.find(rAttrValue, inputOutputField); + if (attrVal) { + tempLink += '<div data-id="' + attrVal.guid + '"><a href="#!/detailPage/' + attrVal.guid + '">' + Utils.getName(attrVal) + '</a></div>'; + } + } else { + tempLink += '<div data-id="' + rAttrValue.guid + '"><a href="#!/detailPage/' + rAttrValue.guid + '">' + Utils.getName(rAttrValue) + '</a></div>'; + } } } else { tempLink += '<a href="#!/detailPage/' + id + '">' + name + '</a>'
