Stop module with missing types from preventing editor load

This commit is contained in:
Nick O'Leary
2021-05-13 14:06:43 +01:00
parent 866f305686
commit 15aa249f64

View File

@@ -86,6 +86,10 @@ RED.nodes = (function() {
}
},
addNodeSet: function(ns) {
if (!ns.types) {
// A node has been loaded without any types. Ignore it.
return;
}
ns.added = false;
nodeSets[ns.id] = ns;
for (var j=0;j<ns.types.length;j++) {