diff --git a/src/Umbraco.Web.UI.Client/libs/observable-api/deep-state.ts b/src/Umbraco.Web.UI.Client/libs/observable-api/deep-state.ts index 8b2b865b3e..d7b03f83f3 100644 --- a/src/Umbraco.Web.UI.Client/libs/observable-api/deep-state.ts +++ b/src/Umbraco.Web.UI.Client/libs/observable-api/deep-state.ts @@ -7,8 +7,8 @@ function deepFreeze(inObj: T): T { Object.freeze(inObj); Object.getOwnPropertyNames(inObj)?.forEach(function (prop) { - // eslint-disable-next-line no-prototype-builtins if ( + // eslint-disable-next-line no-prototype-builtins (inObj as any).hasOwnProperty(prop) && (inObj as any)[prop] != null && typeof (inObj as any)[prop] === 'object' &&