From b623ccc7fedcb7d2c600de2ddc63a98f01d3eae4 Mon Sep 17 00:00:00 2001 From: Rob Fellows Date: Fri, 15 Nov 2024 15:09:53 -0500 Subject: [PATCH] [NIFI-13918][NIFI-14015] - Flow analysis unauthorized root group does not display group id in the PG details section (#9529) --- .../flow-analysis-drawer/flow-analysis-drawer.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-analysis-drawer/flow-analysis-drawer.component.ts b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-analysis-drawer/flow-analysis-drawer.component.ts index c02e5bf751..e90887ddd1 100644 --- a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-analysis-drawer/flow-analysis-drawer.component.ts +++ b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-analysis-drawer/flow-analysis-drawer.component.ts @@ -107,7 +107,11 @@ export class FlowAnalysisDrawerComponent { .select(selectBreadcrumbs) .pipe(takeUntilDestroyed()) .subscribe((breadcrumbs: BreadcrumbEntity) => { - this.processGroupName = breadcrumbs.breadcrumb.name; + if (breadcrumbs.permissions.canRead && breadcrumbs.breadcrumb) { + this.processGroupName = breadcrumbs.breadcrumb.name; + } else { + this.processGroupName = this.currentProcessGroupId; + } }); }