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 e3235b221c..03f2097033 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 @@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs"; // TODO: Should this handle array as well? function deepFreeze(inObj: T): T { - if(inObj && typeof inObj === 'object') { + if(inObj != null && typeof inObj === 'object') { Object.freeze(inObj); Object.getOwnPropertyNames(inObj)?.forEach(function (prop) {