From f71785108ca68192460ed837f91abd48025169a7 Mon Sep 17 00:00:00 2001 From: longxiaofei Date: Tue, 23 Jul 2024 11:57:14 +0800 Subject: [PATCH] fix: error spec of ChartPreviewApp --- app/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/index.tsx b/app/src/index.tsx index a59c114..8b245c0 100644 --- a/app/src/index.tsx +++ b/app/src/index.tsx @@ -399,7 +399,7 @@ function PreviewApp(props: IPreviewProps, containerId: string) { } function ChartPreviewApp(props: IChartPreviewProps, id: string) { - props.visSpec = FormatSpec(props.visSpec, []); + props.visSpec = FormatSpec([props.visSpec], [])[0]; ReactDOM.render(