From: Bill Erickson Date: Fri, 21 Aug 2020 15:14:02 +0000 (-0400) Subject: LP1891355 Perm group refresh after changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=02921c5c58791485a53ca3362624ae2d999eb8d0;p=evergreen%2Fpines.git LP1891355 Perm group refresh after changes Fixes an issue where the permission group interface failed to refresh the page after an edit and data refetch was performed. At issue was a progress component which was not rendered/active at the time of refresh, leading to a JS error, causeing the refresh to stop. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts index da97bca4f7..c6fd1310e6 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts @@ -148,7 +148,9 @@ export class PermGroupTreeComponent implements OnInit { return this.pcrud.retrieveAll('pgpm', {}, {fleshSelectors: true, authoritative: true}) .pipe(map(m => { - this.loadProgress.increment(); + if (this.loadProgress) { + this.loadProgress.increment(); + } this.permMaps.push(m); })).toPromise(); }