Skip to content

Commit fd2ce5f

Browse files
committed
Merge branch 'main' into v15/dev
2 parents 7428ddc + a95086b commit fd2ce5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/context-api/debug/context-data.function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function contextItemData(contextInstance: any): UmbDebugContextItemData {
4848

4949
case 'object':
5050
// Check if the object is an observable (by checking if it has a subscribe method/function)
51-
const isSubscribeLike = 'subscribe' in value && typeof value['subscribe'] === 'function';
51+
const isSubscribeLike = value && 'subscribe' in value && typeof value['subscribe'] === 'function';
5252
const isWebComponent = value instanceof HTMLElement;
5353

5454
let valueToDisplay = 'Complex Object';

0 commit comments

Comments
 (0)