mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
111638: Fix table collapsing when it has no processes
This commit is contained in:
@@ -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
|
// 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>>) => {
|
(processesRD: RemoteData<PaginatedList<ProcessOverviewTableEntry>>) => {
|
||||||
if (!(processesRD.payload.totalElements > 0)) {
|
if (!(processesRD.payload.totalElements > 0)) {
|
||||||
this.isCollapsed = true;
|
this.isCollapsed = true;
|
||||||
|
Reference in New Issue
Block a user