Fix bug with loading automatic actions when there are no boards.

This commit is contained in:
kiswa 2014-10-17 12:49:54 -04:00
parent e27a8ef784
commit 85f22dc8af
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function ($scope, UserService, AlertService) {
}
$scope.loadingBoards = false;
if (undefined === data || null === data) {
if (null === data) {
$scope.boards = [];
return;
}

View File

@ -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();
}