web/admin: fix chart display with no sources (#4782)
This commit is contained in:
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user