From 8ea02e4cc92d9ded1714ef2fc214267f8c56b066 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 6 Jun 2021 12:40:32 +0200 Subject: [PATCH] web/admin: fix charts not showing with null values Signed-off-by: Jens Langhammer --- web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts | 2 +- web/src/pages/admin-overview/charts/OutpostStatusChart.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts b/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts index fac4532db..73b2c83f4 100644 --- a/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts +++ b/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts @@ -57,7 +57,7 @@ export class LDAPSyncStatusChart extends AKChart { })); this.centerText = sources.pagination.count.toString(); return { - healthy, + healthy: healthy === 0 ? -1 : healthy, failed, unsynced }; diff --git a/web/src/pages/admin-overview/charts/OutpostStatusChart.ts b/web/src/pages/admin-overview/charts/OutpostStatusChart.ts index de8681f6f..89f14a828 100644 --- a/web/src/pages/admin-overview/charts/OutpostStatusChart.ts +++ b/web/src/pages/admin-overview/charts/OutpostStatusChart.ts @@ -53,7 +53,7 @@ export class OutpostStatusChart extends AKChart { })); this.centerText = outposts.pagination.count.toString(); return { - healthy, + healthy: healthy === 0 ? -1 : healthy, outdated, unhealthy };