Browse Source

Fix maxItems

pull/698/head
Thomas 3 years ago
parent
commit
25fe707297
  1. 4
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

4
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -150,11 +150,11 @@ export class PortfolioProportionChartComponent
}); });
if (!unknownItem) { if (!unknownItem) {
const index = chartDataSorted.push([ chartDataSorted.push([
UNKNOWN_KEY, UNKNOWN_KEY,
{ name: UNKNOWN_KEY, subCategory: {}, value: 0 } { name: UNKNOWN_KEY, subCategory: {}, value: 0 }
]); ]);
unknownItem = chartDataSorted[index]; unknownItem = chartDataSorted[chartDataSorted.length - 1];
} }
rest.forEach((restItem) => { rest.forEach((restItem) => {

Loading…
Cancel
Save