From 02921c5c58791485a53ca3362624ae2d999eb8d0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 21 Aug 2020 11:14:02 -0400 Subject: [PATCH] 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 --- .../src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.11.0