Check if board is undefined (fixes #366)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -55,7 +55,11 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
return BoardService.getCurrent().title;
|
if (typeof BoardService.getCurrent() !== 'undefined') {
|
||||||
|
return BoardService.getCurrent().title;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}, function () {
|
}, function () {
|
||||||
$scope.setPageTitle();
|
$scope.setPageTitle();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user