From 1ace5de9e694311b453c13a319b8152336aada54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Dec 2017 22:06:25 +0100 Subject: [PATCH] Make sure both board lists are initialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/ListController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/controller/ListController.js b/js/controller/ListController.js index 7713dcf22..a1e42c1e6 100644 --- a/js/controller/ListController.js +++ b/js/controller/ListController.js @@ -95,15 +95,15 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ $scope.statusservice.setError('Error occured', error); }); } else { - /* Watch for data change of boardservice when boards are fetched */ + /* initialize main list controller when board list is loaded */ var boardDataWatch = $scope.$watch(function () { - return $scope.boardservice.data; + return $scope.boardservice.loaded; }, function () { if (BoardService.loaded === true) { boardDataWatch(); finishedLoading(); } - }, true); + }); } $scope.$watch(function () {