Fix: visualization wasn't loading on first page load

This commit is contained in:
Arik Fraimovich 2016-12-27 12:17:07 +02:00
parent 894da612f4
commit b3d0f705be
2 changed files with 5 additions and 1 deletions

View File

@ -312,6 +312,10 @@ function QueryResultService($resource, $timeout, $q) {
}
prepareFilters() {
if (!this.getColumns()) {
return;
}
const filters = [];
const filterTypes = ['filter', 'multi-filter', 'multiFilter'];

View File

@ -23,7 +23,7 @@ function ChartRenderer() {
}
function reloadData() {
if (!isUndefined($scope.queryResult)) {
if (!isUndefined($scope.queryResult) && $scope.queryResult.getData()) {
const data = $scope.queryResult.getChartData($scope.options.columnMapping);
$scope.chartSeries = sortBy(data, zIndexCompare);
}