don't execute query if the query string is empty (when changing datasource)

This commit is contained in:
Alexander Leibzon
2015-07-12 22:53:08 +03:00
parent 43edb009d6
commit 079fbf33f4

View File

@@ -152,7 +152,9 @@
updateSchema();
$scope.dataSource = _.find($scope.dataSources, function(ds) { return ds.id == $scope.query.data_source_id; });
$scope.executeQuery();
if ($scope.query.query) {
$scope.executeQuery();
}
};
$scope.setVisualizationTab = function (visualization) {