Skip to content

Commit

Permalink
Revert "Fix tests"
Browse files Browse the repository at this point in the history
This reverts commit 4449b4c.
  • Loading branch information
Stephanie Roy committed May 24, 2023
1 parent 7645474 commit 198eebc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extension/src/experiments/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ export class ExperimentsData extends BaseData<ExpShowOutput> {
}
}

const output = await this.internalCommands.executeCommand<ExpShowOutput>(
const data = await this.internalCommands.executeCommand<ExpShowOutput>(
AvailableCommands.EXP_SHOW,
this.dvcRoot,
...flags
)

const data = output.map((out, i) => ({
...out,
branch: i === 0 ? currentBranch : branchList[i - 1]
}))
// eslint-disable-next-line unicorn/no-array-for-each
data.forEach(
(output, i) =>
(output.branch = i === 0 ? currentBranch : branchList[i - 1])
)

this.collectFiles(data)

Expand All @@ -97,7 +98,6 @@ export class ExperimentsData extends BaseData<ExpShowOutput> {
branches.push(currentBranch)
this.experiments.setBranchesToShow(branches)
}

return { branches, currentBranch }
}

Expand Down

0 comments on commit 198eebc

Please sign in to comment.