From 326dcee3d7340be2077ed5678e4682be7fce0faa Mon Sep 17 00:00:00 2001 From: sealday Date: Tue, 19 Mar 2024 17:04:56 +0800 Subject: [PATCH] fix: handle added ctx --- .../plugin-data-visualization/src/client/chart/g2plot/pie.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts index 588a33f10..76f6c6a49 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts @@ -31,8 +31,8 @@ export class Pie extends G2PlotChart { }; }; - getProps({ data, general, advanced, fieldProps }: RenderProps) { - const props = super.getProps({ data, general, advanced, fieldProps }); + getProps({ data, general, advanced, fieldProps, ctx }: RenderProps) { + const props = super.getProps({ data, general, advanced, fieldProps, ctx }); return { ...props, tooltip: (d, index: number, data, column: any) => {