This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new e1af53c  ATLAS-4186 :- Fix black icons on Apache Atlas lineage UI in 
case of space in the type name of the entity (#124)
e1af53c is described below

commit e1af53cc2acb821dbb69787936e853f24c655474
Author: Roman Hres <[email protected]>
AuthorDate: Tue Mar 9 06:58:29 2021 +0200

    ATLAS-4186 :- Fix black icons on Apache Atlas lineage UI in case of space 
in the type name of the entity (#124)
    
    Co-authored-by: Roman Gres <[email protected]>
    (cherry picked from commit 8f820e68e6e52b2e8e24befd6601ab27a79ff92c)
---
 .../public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js      | 2 +-
 .../public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js 
b/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
index 55f363e..448a95a 100644
--- a/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
+++ b/dashboardv2/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
@@ -390,7 +390,7 @@ const LineageUtils = {
         }
         var shapeSvg = parent
             .append("circle")
-            .attr("fill", "url(#img_" + imgName + ")")
+            .attr("fill", "url(#img_" + encodeURI(imgName) + ")")
             .attr("r", isRankdirToBottom ? "30px" : "24px")
             .attr("data-stroke", node.id)
             .attr("stroke-width", "2px")
diff --git 
a/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js 
b/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
index 55f363e..448a95a 100644
--- a/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
+++ b/dashboardv3/public/js/external_lib/atlas-lineage/src/Utils/LineageUtils.js
@@ -390,7 +390,7 @@ const LineageUtils = {
         }
         var shapeSvg = parent
             .append("circle")
-            .attr("fill", "url(#img_" + imgName + ")")
+            .attr("fill", "url(#img_" + encodeURI(imgName) + ")")
             .attr("r", isRankdirToBottom ? "30px" : "24px")
             .attr("data-stroke", node.id)
             .attr("stroke-width", "2px")

Reply via email to