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 66699f208f11c34192d7a7cc71cdd2137dfa88e9 Author: Mykola Mandra <[email protected]> AuthorDate: Wed Jun 23 10:50:23 2021 +0100 Check label text for null before adding into textPath html attribute Signed-off-by: Mykola Mandra <[email protected]> --- ui-modules/blueprint-composer/app/components/util/d3-blueprint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 06404ed..09e562f 100755 --- a/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js +++ b/ui-modules/blueprint-composer/app/components/util/d3-blueprint.js @@ -806,7 +806,7 @@ export function D3Blueprint(container, options) { .attr('hidden', (d) => (d.label ? null : '')) .attr('xlink:href', (d)=>('#' + d.source._id + '-' + d.target._id)) .attr('startOffset', '59%') - .html((d) => (' ' + d.label + ' ')); + .html((d) => (d.label ? ' ' + d.label + ' ': null)); // Draw the transition relationData.transition()
