web/admin: fix mismatched values in charts

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2023-02-21 11:59:33 +01:00
parent 6c72c97513
commit 53c03f3635
5 changed files with 6 additions and 11 deletions

View File

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