fix(dashboard): correct stale Stats reset with inactive field

This commit is contained in:
SaelixCode
2026-03-22 03:21:36 -04:00
parent 5191737d53
commit 0d5dc574a4
+1 -1
View File
@@ -73,7 +73,7 @@ export default function HomeDashboard() {
// Fetch container stats - re-runs when active node changes so stale data is cleared immediately
useEffect(() => {
setStats({ active: 0, exited: 0, total: 0, inactive: 0 });
setStats({ active: 0, managed: 0, unmanaged: 0, exited: 0, total: 0 });
const fetchStats = async () => {
try {
const res = await apiFetch('/stats');