diff --git a/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx b/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx index 52c77abc879..3d3f12ec57d 100644 --- a/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx +++ b/public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx @@ -62,8 +62,8 @@ export class QueryEditor extends React.Component { } 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) {