mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
unregister event listener correctly
This commit is contained in:
parent
ae50d83608
commit
d51f91f54b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user