From 024fd172443e313843141d82e5e287b172f28379 Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Thu, 8 Feb 2024 13:28:04 +0100 Subject: [PATCH] 111638: Fix table collapsing when it has no processes --- .../overview/table/process-overview-table.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/process-page/overview/table/process-overview-table.component.ts b/src/app/process-page/overview/table/process-overview-table.component.ts index 36003a2a89..31ac041adc 100644 --- a/src/app/process-page/overview/table/process-overview-table.component.ts +++ b/src/app/process-page/overview/table/process-overview-table.component.ts @@ -190,7 +190,7 @@ export class ProcessOverviewTableComponent implements OnInit { ); // Collapse this section when the number of processes is zero the first time processes are retrieved - this.processesRD$.pipe(getFirstCompletedRemoteData()).subscribe( + this.processesRD$.pipe(take(1)).subscribe( (processesRD: RemoteData>) => { if (!(processesRD.payload.totalElements > 0)) { this.isCollapsed = true;