NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Ensure uri components are decoded (#11920)
Josh Hawkins187d98a15348
diff --git a/web/src/hooks/use-overlay-state.tsx b/web/src/hooks/use-overlay-state.tsxindex f39717288e..573598b0c2 100644--- a/web/src/hooks/use-overlay-state.tsx+++ b/web/src/hooks/use-overlay-state.tsx@@ -109,9 +109,15 @@ export function useSearchEffect(const params = location.search.substring(1).split("&");- return params+ const foundParam = params.find((p) => p.includes("=") && p.split("=")[0] == key)?.split("=");++ if (foundParam && foundParam.length === 2) {+ return [foundParam[0], decodeURIComponent(foundParam[1])];+ }++ return undefined;}, [location, key]);useEffect(() => {