From 08299e5c78d631deaf1042aa68efb19c608bb334 Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Mon, 19 Feb 2024 09:55:20 +0100 Subject: [PATCH] 111638: Only collapse tables on initial page open --- .../overview/table/process-overview-table.component.ts | 3 ++- 1 file changed, 2 insertions(+), 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 c34a272583..27563e001d 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 @@ -200,7 +200,8 @@ export class ProcessOverviewTableComponent implements OnInit, OnDestroy { // Collapse this section when the number of processes is zero the first time processes are retrieved this.subs.push(this.processesRD$.pipe( - filter((processListRd: RemoteData>) => hasValue(processListRd)) + filter((processListRd: RemoteData>) => hasValue(processListRd)), + take(1), ).subscribe( (processesRD: RemoteData>) => { if (!(processesRD.payload.totalElements > 0)) {