We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b277aff commit 8d7ccfdCopy full SHA for 8d7ccfd
packages/transform-plotly/src/index.tsx
@@ -3,7 +3,7 @@ import cloneDeep from "lodash.clonedeep";
3
import React from "react";
4
5
interface Props {
6
- data: string | object;
+ data?: string | object;
7
mediaType: "application/vnd.plotly.v1+json";
8
}
9
@@ -100,6 +100,7 @@ export class PlotlyTransform extends React.Component<Props> {
100
};
101
102
render() {
103
+ if (!this.props.data) return null;
104
const { layout } = this.getFigure();
105
const style: React.CSSProperties = {};
106
if (layout && layout.height && !layout.autosize) {
0 commit comments