From 9b516fa41c23b7352bf670aed5928371d845a058 Mon Sep 17 00:00:00 2001 From: tanshu Date: Wed, 13 Apr 2016 15:56:38 +0530 Subject: [PATCH] Fix: Ledger was not updating because $watch was not firing. --- brewman/static/scripts/ledger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/static/scripts/ledger.js b/brewman/static/scripts/ledger.js index 4d0b8ff2..7dae224d 100644 --- a/brewman/static/scripts/ledger.js +++ b/brewman/static/scripts/ledger.js @@ -35,7 +35,7 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', ' $scope.selected = index; }; - $scope.$watch(['info', 'hidden'], function () { + $scope.$watchGroup(['info', 'hidden'], function () { var filtered = $scope.doFilter($scope.hidden, $scope.info.Body); $scope.ledger = filtered.Body; $scope.footer = filtered.Footer;