Fix bug with loading automatic actions when there are no boards.
This commit is contained in:
parent
e27a8ef784
commit
85f22dc8af
@ -32,7 +32,7 @@ function ($scope, UserService, AlertService) {
|
||||
}
|
||||
|
||||
$scope.loadingBoards = false;
|
||||
if (undefined === data || null === data) {
|
||||
if (null === data) {
|
||||
$scope.boards = [];
|
||||
return;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ function ($scope, $interval, BoardService) {
|
||||
};
|
||||
|
||||
// Wait until boards are loaded to load the actions.
|
||||
$scope.$watchCollection('boards', function() {
|
||||
$scope.$watch('loadingBoards', function() {
|
||||
if (!$scope.loadingBoards) {
|
||||
$scope.loadActions();
|
||||
}
|
||||
|
Reference in New Issue
Block a user