mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Fix: visualization wasn't loading on first page load
This commit is contained in:
parent
894da612f4
commit
b3d0f705be
@ -312,6 +312,10 @@ function QueryResultService($resource, $timeout, $q) {
|
||||
}
|
||||
|
||||
prepareFilters() {
|
||||
if (!this.getColumns()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const filters = [];
|
||||
const filterTypes = ['filter', 'multi-filter', 'multiFilter'];
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user