From 51a1526146d995734b1c69d863697e91c35725fc Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:25:01 -0500 Subject: [PATCH] loitering_time can be zero (#12599) --- web/src/components/settings/ZoneEditPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/settings/ZoneEditPane.tsx b/web/src/components/settings/ZoneEditPane.tsx index 9193d9c2d..b80fa933e 100644 --- a/web/src/components/settings/ZoneEditPane.tsx +++ b/web/src/components/settings/ZoneEditPane.tsx @@ -245,7 +245,7 @@ export default function ZoneEditPane({ } let loiteringTimeQuery = ""; - if (loitering_time) { + if (loitering_time >= 0) { loiteringTimeQuery = `&cameras.${polygon?.camera}.zones.${zoneName}.loitering_time=${loitering_time}`; }