Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 4eaebe3

Browse files
authored
Merge pull request #754 from plotly/graph-warning
full propTypes for ControlledPlotlyGraph to avoid weird React warning
2 parents 7fa7feb + 2d28fc6 commit 4eaebe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Graph.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ const ControlledPlotlyGraph = memo(props => {
115115
);
116116
});
117117

118-
ControlledPlotlyGraph.propTypes = PropTypes.any;
119-
120118
PlotlyGraph.propTypes = {
121119
...privatePropTypes,
122120

@@ -515,6 +513,8 @@ PlotlyGraph.propTypes = {
515513
}),
516514
};
517515

516+
ControlledPlotlyGraph.propTypes = PlotlyGraph.propTypes;
517+
518518
PlotlyGraph.defaultProps = {
519519
...privateDefaultProps,
520520

0 commit comments

Comments
 (0)