Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: use Object.hasOwn in the ImageGen object-URL test stub (#5722)

Adam Eivy73c13dba36c0
diff --git a/client/src/pages/ImageGen.objectUrls.test.jsx b/client/src/pages/ImageGen.objectUrls.test.jsx
index b9b9cc5f14..b663316992 100644
--- a/client/src/pages/ImageGen.objectUrls.test.jsx
+++ b/client/src/pages/ImageGen.objectUrls.test.jsx
@@ -128,7 +128,7 @@ const liveUrls = () => state.created.filter((u) => !state.revoked.includes(u));
// assigning `undefined` back would leave an own property that later files see
// as "present but broken".
const stub = (host, key, value) => {
- const had = Object.prototype.hasOwnProperty.call(host, key);
+ const had = Object.hasOwn(host, key);
const prev = host[key];
host[key] = value;
return () => { if (had) host[key] = prev; else delete host[key]; };