mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-25 09:46:47 +00:00
fix(dashboard): correct stale Stats reset with inactive field
This commit is contained in:
@@ -73,7 +73,7 @@ export default function HomeDashboard() {
|
|||||||
|
|
||||||
// Fetch container stats - re-runs when active node changes so stale data is cleared immediately
|
// Fetch container stats - re-runs when active node changes so stale data is cleared immediately
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setStats({ active: 0, exited: 0, total: 0, inactive: 0 });
|
setStats({ active: 0, managed: 0, unmanaged: 0, exited: 0, total: 0 });
|
||||||
const fetchStats = async () => {
|
const fetchStats = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await apiFetch('/stats');
|
const res = await apiFetch('/stats');
|
||||||
|
|||||||
Reference in New Issue
Block a user