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 <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
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();
}