Commit d51f91f5 by Erik Sundell

unregister event listener correctly

parent ae50d836
......@@ -62,8 +62,8 @@ export class QueryEditor extends React.Component<Props, State> {
}
componentWillUnmount() {
this.props.events.off('data-received');
this.props.events.off('data-error');
this.props.events.off('data-received', this.onDataReceived);
this.props.events.off('data-error', this.onDataError);
}
onDataReceived(dataList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment