A timing condition was causing the setQuery() fnc to not
exist when called resulting in a blank group members grid.
A simple $timeout seems to address it.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
if (redirect) return;
// let initTab() fetch the user first so we can know the usrgroup
- grid.setQuery({
+ $timeout(grid.setQuery({
usrgroup : patronSvc.current.usrgroup(),
deleted : 'f'
- });
+ }), 500); // wrap in timeout to try to prevent race condition LP1642036
$scope.totals.owed = patronSvc.patron_stats.fines.group_balance_owed;
});