fix security page boards fetch using correct api response format

This commit is contained in:
2026-03-22 08:57:13 +02:00
parent d9fdad99ec
commit 843a64ab55

View File

@@ -124,7 +124,7 @@ function AlertsTab() {
const [cleaning, setCleaning] = useState(false) const [cleaning, setCleaning] = useState(false)
useEffect(() => { useEffect(() => {
api.get<{ boards: BoardSummary[] }>('/boards').then((r) => setBoards(r.boards)).catch(() => {}) api.get<BoardSummary[]>('/admin/boards').then(setBoards).catch(() => {})
}, []) }, [])
const fetchAlerts = () => { const fetchAlerts = () => {