Skip to content

Commit

Permalink
Merge pull request #754 from plotly/graph-warning
Browse files Browse the repository at this point in the history
full propTypes for ControlledPlotlyGraph to avoid weird React warning
  • Loading branch information
alexcjohnson committed Feb 11, 2020
1 parent fd65596 commit 21da47e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dash-core-components/src/components/Graph.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ const ControlledPlotlyGraph = memo(props => {
);
});

ControlledPlotlyGraph.propTypes = PropTypes.any;

PlotlyGraph.propTypes = {
...privatePropTypes,

Expand Down Expand Up @@ -515,6 +513,8 @@ PlotlyGraph.propTypes = {
}),
};

ControlledPlotlyGraph.propTypes = PlotlyGraph.propTypes;

PlotlyGraph.defaultProps = {
...privateDefaultProps,

Expand Down

0 comments on commit 21da47e

Please sign in to comment.