1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

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