Skip to content

Commit

Permalink
Fix react warning: Setting defaultProps as an instance property on Co…
Browse files Browse the repository at this point in the history
…mponent is not supported and will be ignored. Instead, define defaultProps as a static property on Component.
  • Loading branch information
krizka committed Sep 20, 2018
1 parent 090307f commit 06e2780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions the-graph/the-graph-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ module.exports.register = function (context) {
mixins: [
TooltipMixin
],
defaultProps: {
allowEdgeStart: true,
},
componentDidMount: function () {
var domNode = ReactDOM.findDOMNode(this);

Expand Down Expand Up @@ -206,5 +203,8 @@ module.exports.register = function (context) {
}
}));

TheGraph.Port.defaultProps = {
allowEdgeStart: true,
};

};

0 comments on commit 06e2780

Please sign in to comment.