diff --git a/src/libs/context-api/debug/context-data.function.ts b/src/libs/context-api/debug/context-data.function.ts index e82cbc7f37..1cb945439c 100644 --- a/src/libs/context-api/debug/context-data.function.ts +++ b/src/libs/context-api/debug/context-data.function.ts @@ -48,7 +48,7 @@ function contextItemData(contextInstance: any): UmbDebugContextItemData { case 'object': // Check if the object is an observable (by checking if it has a subscribe method/function) - const isSubscribeLike = 'subscribe' in value && typeof value['subscribe'] === 'function'; + const isSubscribeLike = value && 'subscribe' in value && typeof value['subscribe'] === 'function'; const isWebComponent = value instanceof HTMLElement; let valueToDisplay = 'Complex Object';