web/admin: fix charts not showing with null values

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-06 12:40:32 +02:00
parent f399b32135
commit 8ea02e4cc9
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export class LDAPSyncStatusChart extends AKChart<LDAPSyncStats> {
})); }));
this.centerText = sources.pagination.count.toString(); this.centerText = sources.pagination.count.toString();
return { return {
healthy, healthy: healthy === 0 ? -1 : healthy,
failed, failed,
unsynced unsynced
}; };

View File

@ -53,7 +53,7 @@ export class OutpostStatusChart extends AKChart<OutpostStats> {
})); }));
this.centerText = outposts.pagination.count.toString(); this.centerText = outposts.pagination.count.toString();
return { return {
healthy, healthy: healthy === 0 ? -1 : healthy,
outdated, outdated,
unhealthy unhealthy
}; };