mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:32:10 +08:00
unregister event listener correctly
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user