Skip to content

Commit

Permalink
fix: error spec of ChartPreviewApp
Browse files Browse the repository at this point in the history
  • Loading branch information
longxiaofei committed Jul 24, 2024
1 parent 7dff0db commit f717851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<MainApp darkMode={props.dark} hideToolBar>
<ChartPreview {...props} />
Expand Down

0 comments on commit f717851

Please sign in to comment.