From 3883643ea21569e406d98f0212cc4628095d1e05 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 1 Nov 2018 10:17:39 +0100 Subject: [PATCH] stackdriver: reset query value on datasource changed --- public/app/features/templating/editor_ctrl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/templating/editor_ctrl.ts b/public/app/features/templating/editor_ctrl.ts index aef5f5ee502..1af5d45be7a 100644 --- a/public/app/features/templating/editor_ctrl.ts +++ b/public/app/features/templating/editor_ctrl.ts @@ -180,6 +180,7 @@ export class VariableEditorCtrl { $scope.datasourceChanged = async () => { datasourceSrv.get($scope.current.datasource).then(ds => { + $scope.current.query = ''; $scope.currentDatasource = ds; }); };