fix security page boards fetch using correct api response format
This commit is contained in:
@@ -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 = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user