This is an automated email from the ASF dual-hosted git repository.
yuteng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git
The following commit(s) were added to refs/heads/master by this push:
new d0b219c [YUNIKORN-1860] Fix totalContainers (#128)
d0b219c is described below
commit d0b219c84d84ebf6dc04954e2fd8e2f23a971568
Author: PoAn Yang <[email protected]>
AuthorDate: Sat Aug 5 08:39:17 2023 +0800
[YUNIKORN-1860] Fix totalContainers (#128)
Signed-off-by: Frank Yang <[email protected]>
---
src/app/components/dashboard/dashboard.component.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/app/components/dashboard/dashboard.component.ts
b/src/app/components/dashboard/dashboard.component.ts
index c15a67c..2cf141c 100644
--- a/src/app/components/dashboard/dashboard.component.ts
+++ b/src/app/components/dashboard/dashboard.component.ts
@@ -86,6 +86,7 @@ export class DashboardComponent implements OnInit {
? list[0].nodeSortingPolicy.type
: NOT_AVAILABLE;
+ list[0].totalContainers = list[0].totalContainers || 0;
this.partitionName = list[0].name || NOT_AVAILABLE;
this.totalNodes = String(list[0].totalNodes);
this.totalApplications = String(list[0].applications.total);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]