Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Jun 14, 2023
1 parent 5241992 commit 0380da1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ export function getStatsBarData(jobsList: any) {
jobStats.activeNodes.value = Object.keys(mlNodes).length;

if (jobStats.total.value === 0) {
for (const statKey in jobStats) {
for (const [statKey, val] of Object.entries(jobStats)) {
if (statKey !== 'total') {
// @ts-ignore
jobStats[statKey].show = false;
val.show = false;
}
}
}
Expand Down

0 comments on commit 0380da1

Please sign in to comment.