web/admin: fix chart display with no sources (#4782)

This commit is contained in:
Jens L
2023-02-24 22:54:11 +01:00
committed by GitHub
parent 886749dcb2
commit 612d1c76d4
3 changed files with 14 additions and 11 deletions

View File

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