diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index b13ee3b80..062c05ca1 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -55,7 +55,11 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St }; $scope.$watch(function () { - return BoardService.getCurrent().title; + if (typeof BoardService.getCurrent() !== 'undefined') { + return BoardService.getCurrent().title; + } else { + return null; + } }, function () { $scope.setPageTitle(); });