From fa6a250b5c28099c20758c7faa4961d24885ffc2 Mon Sep 17 00:00:00 2001 From: "akash.sonune" Date: Fri, 13 Mar 2026 00:14:20 +0530 Subject: [PATCH] refactor(charts-ng): filter out empty strings from echarts color palette and avoid warnings --- projects/charts-ng/common/si-chart-base.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/charts-ng/common/si-chart-base.component.ts b/projects/charts-ng/common/si-chart-base.component.ts index ba4168765f..9a31066d3f 100644 --- a/projects/charts-ng/common/si-chart-base.component.ts +++ b/projects/charts-ng/common/si-chart-base.component.ts @@ -767,9 +767,9 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O if (paletteValue) { const palette = this.getThemeCustomValue(['colorPalettes', paletteValue], null); if (palette) { - this.actualOptions.color = palette; + this.actualOptions.color = Array.isArray(palette) ? palette.filter(Boolean) : palette; if (this.customLegendAction()) { - this.fetchSeriesColors(palette); + this.fetchSeriesColors(this.actualOptions.color); } } }