Use cache key for mask/zone editor image (#12232)

This commit is contained in:
Josh Hawkins 2024-07-01 10:02:56 -05:00 committed by GitHub
parent f050c7b37d
commit b30fecbd28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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