Skip to content

Commit a4cce02

Browse files
committed
Revert null figure case
1 parent 4c9bcab commit a4cce02

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

dashi/src/lib/components/DashiPlot.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ export function DashiPlot({
2020
onPropertyChange,
2121
}: DashiPlotProps) {
2222
if (!figure) {
23-
console.error(
24-
"Rendering DashiPlot failed:",
25-
"Expected figure, got",
26-
figure,
27-
);
28-
return null;
23+
return <div id={id} style={style} />;
2924
}
3025
const { datasets, ...spec } = figure;
3126
const Plot = createClassFromSpec({

0 commit comments

Comments
 (0)