From 7626df36b616e7f9d147ff5b155203d2324db20e Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Thu, 18 Sep 2025 06:43:30 +0200 Subject: [PATCH] Fix jwt-token --- client/src/pages/Detections.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Detections.jsx b/client/src/pages/Detections.jsx index f8f5b28..1675007 100644 --- a/client/src/pages/Detections.jsx +++ b/client/src/pages/Detections.jsx @@ -38,8 +38,8 @@ const Detections = () => { const response = await api.get(`/detections?${params}`); console.log('✅ Detections response:', response.data); - setDetections(response.data.detections || []); - setPagination(response.data.pagination || {}); + setDetections(response.data.data?.detections || []); + setPagination(response.data.data?.pagination || {}); } catch (error) { console.error('❌ Error fetching detections:', error); setDetections([]); // Ensure detections is always an array