Skip to content

Commit ecc8faa

Browse files
sh-shamsanSarah Alqahtani
authored andcommitted
Fix issue with Node details not showing on Stage page
test event click Co-authored-by: Sarah Alqahtani <Sarah.Alqahtani@ibm.com>
1 parent 859ed50 commit ecc8faa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

presto-ui/src/components/StageDetail.jsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class OperatorDetail extends React.Component {
227227
<div className="row">
228228
<div className="col-12">
229229
<div className="modal-header">
230-
<button type="button" className="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
230+
<button type="button" className="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
231231
<h3>
232232
<small>Pipeline {operator.pipelineId}</small>
233233
<br/>
@@ -355,10 +355,11 @@ class StageOperatorGraph extends React.Component {
355355
}
356356

357357
handleOperatorClick(operatorCssId) {
358-
$('#operator-detail-modal').modal();
358+
$('#operator-detail-modal').modal("show")
359+
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 ;
359362

360-
const pipelineId = parseInt(operatorCssId.split('-')[1]);
361-
const operatorId = parseInt(operatorCssId.split('-')[2]);
362363
const stage = this.props.stage;
363364

364365
let operatorStageSummary = null;

0 commit comments

Comments
 (0)