File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
core/src/main/resources/org/apache/spark/ui/static Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -334,11 +334,13 @@ function drawCrossStageEdges(edges, svgContainer) {
334
334
}
335
335
// Now draw the arrows by borrowing the arrow marker generated by dagre-d3
336
336
var dagreD3Marker = svgContainer . select ( "g.edgePaths marker" ) . node ( ) ;
337
- svgContainer
338
- . append ( function ( ) { return dagreD3Marker . cloneNode ( true ) ; } )
339
- . attr ( "id" , "marker-arrow" )
340
- svgContainer . selectAll ( "g > path" ) . attr ( "marker-end" , "url(#marker-arrow)" ) ;
341
- svgContainer . selectAll ( "g.edgePaths def" ) . remove ( ) ; // We no longer need these
337
+ if ( ! dagreD3Marker . empty ( ) ) {
338
+ svgContainer
339
+ . append ( function ( ) { return dagreD3Marker . cloneNode ( true ) ; } )
340
+ . attr ( "id" , "marker-arrow" )
341
+ svgContainer . selectAll ( "g > path" ) . attr ( "marker-end" , "url(#marker-arrow)" ) ;
342
+ svgContainer . selectAll ( "g.edgePaths def" ) . remove ( ) ; // We no longer need these
343
+ }
342
344
}
343
345
344
346
/*
You can’t perform that action at this time.
0 commit comments