loitering_time can be zero (#12599)

This commit is contained in:
Josh Hawkins 2024-07-24 14:25:01 -05:00 committed by GitHub
parent b4db07d7a5
commit 51a1526146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,7 +245,7 @@ export default function ZoneEditPane({
} }
let loiteringTimeQuery = ""; let loiteringTimeQuery = "";
if (loitering_time) { if (loitering_time >= 0) {
loiteringTimeQuery = `&cameras.${polygon?.camera}.zones.${zoneName}.loitering_time=${loitering_time}`; loiteringTimeQuery = `&cameras.${polygon?.camera}.zones.${zoneName}.loitering_time=${loitering_time}`;
} }