mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
Remove the binding in the constructor.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user