mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update removeModule to reflect getNodeModuleInfo changes
This commit is contained in:
parent
851048077c
commit
1a5751ff1d
@ -83,8 +83,8 @@ function removeModule(module) {
|
||||
if (!info) {
|
||||
throw new Error("Unrecognised module: "+module);
|
||||
} else {
|
||||
for (var i=0;i<info.nodes.length;i++) {
|
||||
checkTypeInUse(module+"/"+info.nodes[i]);
|
||||
for (var i=0;i<info.length;i++) {
|
||||
checkTypeInUse(module+"/"+info[i]);
|
||||
}
|
||||
return registry.removeModule(module);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user