Skip to content

Commit 371755f

Browse files
committed
Fix infinite extent warning
1 parent 19b7aec commit 371755f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chartlets.js/src/lib/components/Plot.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export function Plot({ id, style, chart, onChange }: PlotProps) {
4242
}
4343
});
4444

45-
const { datasets, ...spec } = chart;
4645
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4746
// @ts-expect-error
4847
const handleClickSignal = (signalName: string, value: unknown) => {
@@ -82,8 +81,7 @@ export function Plot({ id, style, chart, onChange }: PlotProps) {
8281

8382
return (
8483
<VegaLite
85-
spec={spec}
86-
data={datasets}
84+
spec={chart}
8785
style={style}
8886
signalListeners={signalListeners}
8987
actions={false}

0 commit comments

Comments
 (0)