diff --git a/client/src/pages/Dashboard.tsx b/client/src/pages/Dashboard.tsx index c5f15ee..899d48b 100644 --- a/client/src/pages/Dashboard.tsx +++ b/client/src/pages/Dashboard.tsx @@ -37,7 +37,7 @@ export default function Dashboard() { }); const { data: recentDetections } = useQuery({ - queryKey: ["/api/detections"], + queryKey: ["/api/detections?limit=100"], refetchInterval: 5000, // Refresh every 5s }); diff --git a/client/src/pages/Detections.tsx b/client/src/pages/Detections.tsx index 2cbe173..4a583c8 100644 --- a/client/src/pages/Detections.tsx +++ b/client/src/pages/Detections.tsx @@ -12,7 +12,7 @@ import { getFlag } from "@/lib/country-flags"; export default function Detections() { const [searchQuery, setSearchQuery] = useState(""); const { data: detections, isLoading } = useQuery({ - queryKey: ["/api/detections"], + queryKey: ["/api/detections?limit=100"], refetchInterval: 5000, });