mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Apply filters only when available
This commit is contained in:
@@ -67,7 +67,11 @@
|
||||
template: '<filters></filters>\n' + Visualization.renderVisualizationsTemplate,
|
||||
replace: false,
|
||||
link: function(scope) {
|
||||
scope.filters = scope.queryResult.getFilters();
|
||||
scope.$watch('queryResult && queryResult.getFilters()', function(filters) {
|
||||
if (filters) {
|
||||
scope.filters = filters;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user