Remove the binding in the constructor.

This commit is contained in:
gaba
2017-04-12 10:12:00 -07:00
parent 51774323de
commit f4f8e5053f
+3 -5
View File
@@ -42,11 +42,9 @@ class Embed extends React.Component {
super(props);
this.state = {
activeTab: 0,
showSignInDialog:
false, activeReplyBox: ''
showSignInDialog: false,
activeReplyBox: ''
};
this.handleClick = this.handleClick.bind(this);
}
changeTab = (tab) => {
@@ -123,7 +121,7 @@ class Embed extends React.Component {
}
}
handleClick() {
handleClick = () => {
this.props.viewAllComments();
this.props.data.refetch();
}