diff --git a/web/src/pages/admin-overview/charts/PolicyStatusChart.ts b/web/src/pages/admin-overview/charts/PolicyStatusChart.ts index 6adf4d7b0..baecd2efc 100644 --- a/web/src/pages/admin-overview/charts/PolicyStatusChart.ts +++ b/web/src/pages/admin-overview/charts/PolicyStatusChart.ts @@ -42,7 +42,9 @@ export class PolicyStatusChart extends AKChart { })).pagination.count; this.centerText = count.toString(); return { - count: count - cached - unbound, + // If we have more cache than total policies, only show that + // otherwise show count without unbound + count: cached >= count ? cached : count - unbound, cached: cached, unbound: unbound, };