Skip to content

Commit

Permalink
fix(Query): fix progress stages view [YTFRONT-4097]
Browse files Browse the repository at this point in the history
  • Loading branch information
SimbiozizV committed Apr 4, 2024
1 parent 2e025aa commit 0098222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/ui/pages/query-tracker/Plan/NodeStages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ function rowClassName(

function prepareData(data: Stages, state?: NodeState, finishedAt?: string) {
const stages: StageRow[] = [];
const length = Object.keys(data).length;

let [currentStage, currentTime] = Object.entries(data[0])[0];
const startedTime = currentTime;
for (let i = 1; i < data.length; i++) {
for (let i = 1; i < length; i++) {
const [nextStage, nextTime] = Object.entries(data[i])[0];
stages.push({
stage: currentStage,
Expand Down

0 comments on commit 0098222

Please # to comment.