diff --git a/client/app/pages/queries/query.html b/client/app/pages/queries/query.html index 97148729b9..e4a3448bae 100644 --- a/client/app/pages/queries/query.html +++ b/client/app/pages/queries/query.html @@ -224,7 +224,7 @@
Log Information:
diff --git a/client/app/pages/queries/view.js b/client/app/pages/queries/view.js index 592066f06a..ada5a4be8f 100644 --- a/client/app/pages/queries/view.js +++ b/client/app/pages/queries/view.js @@ -128,6 +128,7 @@ function QueryViewCtrl( return; } + $scope.dataSourceChanged = false; getQueryResult(0, $scope.selectedQueryText); $scope.lockButton(true); $scope.cancelling = false; @@ -136,6 +137,7 @@ function QueryViewCtrl( Notifications.getPermissions(); }; + $scope.dataSourceChanged = false; $scope.selectedVisualization = DEFAULT_VISUALIZATION; $scope.currentUser = currentUser; $scope.dataSource = {}; @@ -377,7 +379,7 @@ function QueryViewCtrl( $scope.dataSource = find($scope.dataSources, ds => ds.id === $scope.query.data_source_id); getSchema(); - $scope.executeQuery(); + $scope.dataSourceChanged = true; }; $scope.setVisualizationTab = (visualization) => {