Skip to content

Commit 0c3cdd4

Browse files
sh-shamsansarah-alqahtani
authored andcommitted
Update stage navigation to match selected plan event
Co-authored-by: sarah-alqahtani <sarah.alqahtani@ibm.com>
1 parent ecc8faa commit 0c3cdd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

presto-ui/src/components/LivePlan.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export class LivePlan extends React.Component<LivePlanProps, LivePlanState> {
206206
});
207207
}
208208

209-
static handleStageClick(stageCssId: string) {
210-
window.open("stage.html?" + stageCssId, '_blank');
209+
static handleStageClick(stageCssId) {
210+
window.open("stage.html?" + stageCssId.target.__data__, '_blank');
211211
}
212212

213213
componentDidMount() {

presto-ui/src/components/StageDetail.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export class StageDetail extends React.Component {
507507
refreshLoop() {
508508
clearTimeout(this.timeoutId); // to stop multiple series of refreshLoop from going on simultaneously
509509
const queryString = getFirstParameter(window.location.search).split('.');
510-
const queryId = queryString[0];
510+
const queryId = queryString.length > 0 ? queryString[0] : "undefined";
511511

512512
let selectedStageId = this.state.selectedStageId;
513513
if (selectedStageId === null) {

0 commit comments

Comments
 (0)