mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
parent
9a32ebd0c0
commit
fa78bb3d78
@ -485,7 +485,7 @@ class Flow {
|
|||||||
}
|
}
|
||||||
if (!key.startsWith("$parent.")) {
|
if (!key.startsWith("$parent.")) {
|
||||||
if (this._env.hasOwnProperty(key)) {
|
if (this._env.hasOwnProperty(key)) {
|
||||||
return (Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
return (this._env[key] && Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
key = key.substring(8);
|
key = key.substring(8);
|
||||||
|
@ -41,7 +41,7 @@ class Group {
|
|||||||
}
|
}
|
||||||
if (!key.startsWith("$parent.")) {
|
if (!key.startsWith("$parent.")) {
|
||||||
if (this._env.hasOwnProperty(key)) {
|
if (this._env.hasOwnProperty(key)) {
|
||||||
return (Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
return (this._env[key] && Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
key = key.substring(8);
|
key = key.substring(8);
|
||||||
|
@ -376,7 +376,7 @@ class Subflow extends Flow {
|
|||||||
}
|
}
|
||||||
if (!key.startsWith("$parent.")) {
|
if (!key.startsWith("$parent.")) {
|
||||||
if (this._env.hasOwnProperty(key)) {
|
if (this._env.hasOwnProperty(key)) {
|
||||||
return (Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
return (this._env[key] && Object.hasOwn(this._env[key], 'value') && this._env[key].__clone__) ? clone(this._env[key].value) : this._env[key]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
key = key.substring(8);
|
key = key.substring(8);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user