Fix: Ledger was not updating because $watch was not firing.
This commit is contained in:
parent
e868a213b1
commit
9b516fa41c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user