Use cache key for mask/zone editor image

This commit is contained in:
Josh Hawkins 2024-07-01 07:08:32 -05:00
parent f050c7b37d
commit 508e9a4c73

View File

@ -39,7 +39,7 @@ export function PolygonCanvas({
const element = new window.Image(); const element = new window.Image();
element.width = width; element.width = width;
element.height = height; element.height = height;
element.src = `${apiHost}api/${camera}/latest.webp`; element.src = `${apiHost}api/${camera}/latest.webp?cache=${Date.now()}`;
return element; return element;
} }
}, [camera, width, height, apiHost]); }, [camera, width, height, apiHost]);