mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: reset query value on datasource changed
This commit is contained in:
parent
fcf39a0839
commit
3883643ea2
@ -180,6 +180,7 @@ export class VariableEditorCtrl {
|
||||
|
||||
$scope.datasourceChanged = async () => {
|
||||
datasourceSrv.get($scope.current.datasource).then(ds => {
|
||||
$scope.current.query = '';
|
||||
$scope.currentDatasource = ds;
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user