Solved node red not loading without error when subflow is missing

This commit is contained in:
Gerwin van Beek
2023-04-24 11:51:06 +02:00
parent e5d579c1bb
commit 6fbcec8b98
3 changed files with 27 additions and 14 deletions

View File

@@ -199,7 +199,7 @@ function parseConfig(config) {
if (subflowDetails) {
var subflowType = subflowDetails[1]
n.subflow = subflowType;
flow.subflows[subflowType].instances.push(n)
if (flow.subflows[subflowType]) flow.subflows[subflowType].instances.push(n)
}
if (container) {
container.nodes[n.id] = n;