mirror of
https://github.com/getredash/redash.git
synced 2026-05-13 16:01:20 -04:00
Fix: access query after it's assigned
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
function QueryViewCtrl($scope, Events, $route, $location, notifications, growl, Query, DataSource) {
|
||||
var DEFAULT_TAB = 'table';
|
||||
|
||||
Events.record(currentUser, 'view', 'query', $scope.query.id);
|
||||
|
||||
$scope.query = $route.current.locals.query;
|
||||
Events.record(currentUser, 'view', 'query', $scope.query.id);
|
||||
$scope.queryResult = $scope.query.getQueryResult();
|
||||
$scope.queryExecuting = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user