fix: auto-refresh enrolled devices list every 30 seconds

The useGpsDevices query was missing refetchInterval, so the Last Active
timestamp on the Enrolled Devices page only updated on initial page load.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 21:04:48 +01:00
parent a0d0cbc8f6
commit ec7c5a6802

View File

@@ -74,6 +74,7 @@ export function useGpsDevices() {
const { data } = await api.get('/gps/devices'); const { data } = await api.get('/gps/devices');
return data; return data;
}, },
refetchInterval: 30000, // Refresh every 30 seconds to update lastActive
}); });
} }