|
@@ -180,6 +180,7 @@ export class VariableEditorCtrl {
|
|
|
|
|
|
|
|
$scope.datasourceChanged = async () => {
|
|
$scope.datasourceChanged = async () => {
|
|
|
datasourceSrv.get($scope.current.datasource).then(ds => {
|
|
datasourceSrv.get($scope.current.datasource).then(ds => {
|
|
|
|
|
+ $scope.current.query = '';
|
|
|
$scope.currentDatasource = ds;
|
|
$scope.currentDatasource = ds;
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|