mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
🐛 Fix bug with null in ObservableObject
This commit is contained in:
@@ -13,7 +13,7 @@ export function create(target: IDataObject, parent?: IObservableObject, option?:
|
||||
|
||||
// Make all the children of target also observeable
|
||||
for (const key in target) {
|
||||
if (typeof target[key] === 'object') {
|
||||
if (typeof target[key] === 'object' && target[key] !== null) {
|
||||
target[key] = create(target[key] as IDataObject, (parent || target) as IObservableObject, option, depth + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user