Commit bc90e93 2 people authored and committed
1 parent 0c3cdd4 commit bc90e93 Copy full SHA for bc90e93
File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class OperatorSummary extends React.Component {
47
47
const byteInputRate = totalWallTime === 0 ? 0 : ( 1.0 * parseDataSize ( operator . inputDataSize ) ) / ( totalWallTime / 1000.0 ) ;
48
48
49
49
return (
50
- < div >
50
+ < div className = "header-data" >
51
51
< div className = "highlight-row" >
52
52
< div className = "header-row" >
53
53
{ operator . operatorType }
@@ -355,11 +355,12 @@ class StageOperatorGraph extends React.Component {
355
355
}
356
356
357
357
handleOperatorClick ( operatorCssId ) {
358
+ if ( operatorCssId . target . hasOwnProperty ( "__data__" ) && operatorCssId . target . __data__ !== undefined ) {
358
359
$ ( '#operator-detail-modal' ) . modal ( "show" )
359
360
360
- const pipelineId = ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) . length > 0 ? parseInt ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) [ 1 ] : 0 ;
361
- const operatorId = ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) . length > 0 ? parseInt ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) [ 2 ] : 0 ;
362
-
361
+ const pipelineId = ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) . length > 0 ? parseInt ( ( operatorCssId ?. target ?. __data__ || '' ) . split ( '-' ) [ 1 ] || '0' ) : 0 ;
362
+ const operatorId = ( operatorCssId ?. target ?. __data__ || "" ) . split ( '-' ) . length > 0 ? parseInt ( ( operatorCssId ?. target ?. __data__ || '' ) . split ( '-' ) [ 2 ] || '0' ) : 0 ;
363
+
363
364
const stage = this . props . stage ;
364
365
365
366
let operatorStageSummary = null ;
@@ -372,7 +373,9 @@ class StageOperatorGraph extends React.Component {
372
373
const container = document . getElementById ( 'operator-detail' ) ;
373
374
const root = createRoot ( container ) ;
374
375
root . render ( < OperatorDetail key = { operatorCssId } operator = { operatorStageSummary } tasks = { stage . latestAttemptExecutionInfo . tasks } /> ) ;
375
-
376
+ } else {
377
+ return ;
378
+ }
376
379
}
377
380
378
381
computeOperatorGraphs ( ) {
Original file line number Diff line number Diff line change @@ -905,6 +905,9 @@ g .operator-stats:hover {
905
905
margin-top : 20px ;
906
906
text-align : right;
907
907
}
908
+ .header-data {
909
+ pointer-events : none;
910
+ }
908
911
909
912
/** ============== **/
910
913
/** Worker Page **/
You can’t perform that action at this time.
0 commit comments