diff --git a/src/app/shared/components/df-user-details/df-user-details-base.component.ts b/src/app/shared/components/df-user-details/df-user-details-base.component.ts index 75698f9b..d8c21b64 100644 --- a/src/app/shared/components/df-user-details/df-user-details-base.component.ts +++ b/src/app/shared/components/df-user-details/df-user-details-base.component.ts @@ -114,7 +114,9 @@ export abstract class DfUserDetailsBaseComponent implements OnInit { } }); this.activatedRoute.data.subscribe(({ type, data, apps, roles }) => { - this.snackbarService.setSnackbarLastEle(data.name, true); + if (data) { + this.snackbarService.setSnackbarLastEle(data.name, true); + } this.type = type; if (this.userType === 'users') { this.apps = apps.resource;