111638: Fix table collapsing when it has no processes

This commit is contained in:
Andreas Awouters
2024-02-08 13:28:04 +01:00
parent c5b5a3b18b
commit 4e195b61b6

View File

@@ -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<PaginatedList<ProcessOverviewTableEntry>>) => {
if (!(processesRD.payload.totalElements > 0)) {
this.isCollapsed = true;