Skip to content

Commit

Permalink
add signature index and event type for type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-shamsan authored and yhwang committed Feb 11, 2025
1 parent 9920682 commit 3dc68eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion presto-ui/src/components/LivePlan.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class LivePlan extends React.Component<LivePlanProps, LivePlanState> {
});
}

static handleStageClick(stageCssId) {
static handleStageClick(stageCssId: any) {
window.open("stage.html?" + stageCssId.target.__data__, '_blank');
}

Expand Down
3 changes: 2 additions & 1 deletion presto-ui/src/components/QueryOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ type ResourceEstimates = {
cpuTime?: string;
peakMemory?: string;
peakTaskMemory?: string;
[key: string]: string;
}

type SessionRepresentation = {
Expand Down Expand Up @@ -1111,7 +1112,7 @@ export default function QueryOverview({ data, show }: { data: QueryData, show: b
}

renderedEstimates.push(
<span>- {snakeCased + "=" + data.session.resourceEstimates[resource]} <br /></span>
<span>- {snakeCased + "=" + estimates[resource]} <br /></span>
)
}
}
Expand Down

0 comments on commit 3dc68eb

Please sign in to comment.