Skip to content

Commit

Permalink
fix: scheduling broken aggregation [YTFRONT-4031]
Browse files Browse the repository at this point in the history
  • Loading branch information
evtaranov authored and evtaranov committed Feb 22, 2024
1 parent a27c407 commit f2c2246
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/ui/utils/scheduling/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export function calculateTotalOverPools(pools) {
});
});

return Object.assign(hammer.aggregation.prepare(pools, summedProperties)[0], {
// We can aggregate only pools with resources
const items = pools.filter((pool) => Boolean(pool.resources));

return Object.assign(hammer.aggregation.prepare(items, summedProperties)[0], {
key: 'aggregation',
name: 'Aggregation',
type: 'aggregation',
Expand Down

0 comments on commit f2c2246

Please sign in to comment.