From f4f8e5053f1a0d59d040631c687fe7cb536a0e5c Mon Sep 17 00:00:00 2001 From: gaba Date: Wed, 12 Apr 2017 10:11:21 -0700 Subject: [PATCH] Remove the binding in the constructor. --- client/coral-embed-stream/src/Embed.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index aa4223757..453d645c2 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -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(); }