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

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git

commit 8d4f330fbd6c724caf36cc440fff867147a7c7c8
Author: Mykola Mandra <[email protected]>
AuthorDate: Wed Jun 23 12:07:01 2021 +0100

    label null check is not required in relationship label text anymore, 
addressed by filter on relation data lables entered
    
    Signed-off-by: Mykola Mandra <[email protected]>
---
 ui-modules/blueprint-composer/app/components/util/d3-blueprint.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js 
b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
index 27daf6c..2f7c1f9 100755
--- a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
+++ b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js
@@ -798,7 +798,7 @@ export function D3Blueprint(container, options) {
                 .insert('textPath')
                 .attr('xlink:href', (d)=>('#' + d.source._id + '-' + 
d.target._id))
                 .attr('startOffset', '59%') // 59% roughly reflects `middle of 
the arch` minus `node radius`.
-                .html((d) => (d.label ? '&#9608;'.repeat(d.label.length + 2) : 
null));
+                .html((d) => ('&#9608;'.repeat(d.label.length + 2)));
         relationDataLabelsEntered.insert('text') // Add label text on top of 
'&#9608;'s which is on top of the path.
             .attr('dominant-baseline', 'middle')
             .attr('text-anchor', 'middle')
@@ -806,7 +806,7 @@ export function D3Blueprint(container, options) {
                 .insert('textPath')
                 .attr('xlink:href', (d)=>('#' + d.source._id + '-' + 
d.target._id))
                 .attr('startOffset', '59%') // 59% roughly reflects `middle of 
the arch` minus `node radius`.
-                .html((d) => (d.label ? ' ' + d.label + ' ': null));
+                .html((d) => (' ' + d.label + ' '));
 
         // Draw the transition
         relationData.transition()

Reply via email to