From 4295cf9ef5b6b1cf95e3ccb52dec1ca17e4587b8 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sun, 1 Feb 2026 13:59:00 +0700 Subject: [PATCH] fix(lint): resolve errors --- libs/common/src/lib/chart-helper.ts | 13 +------------ .../portfolio-proportion-chart.component.ts | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/libs/common/src/lib/chart-helper.ts b/libs/common/src/lib/chart-helper.ts index cb814a864..f03340b68 100644 --- a/libs/common/src/lib/chart-helper.ts +++ b/libs/common/src/lib/chart-helper.ts @@ -52,16 +52,8 @@ export function getTooltipOptions({ bodyColor: `rgb(${getTextColor(colorScheme)})`, borderWidth: 1, borderColor: `rgba(${getTextColor(colorScheme)}, 0.1)`, + // @ts-ignore callbacks: { - afterBody: () => '', - afterFooter: () => '', - afterLabel: () => '', - afterTitle: () => '', - beforeBody: () => '', - beforeFooter: () => '', - beforeLabel: () => '', - beforeTitle: () => '', - footer: () => '', label: (context) => { let label = context.dataset.label ?? ''; if (label) { @@ -85,9 +77,6 @@ export function getTooltipOptions({ } return label; }, - labelColor: () => {}, - labelPointStyle: () => {}, - labelTextColor: () => {}, title: (contexts) => { if (groupBy) { // @ts-ignore diff --git a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts index c0a33d87a..b3318acb9 100644 --- a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts +++ b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -364,7 +364,7 @@ export class GfPortfolioProportionChartComponent // @ts-ignore const symbol: string = event.chart.data.labels[dataIndex]; - const dataSource = this.data[symbol]?.dataSource!; + const dataSource = this.data[symbol].dataSource!; this.proportionChartClicked.emit({ dataSource, symbol }); } catch {}