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) {
|
if (!info) {
|
||||||
throw new Error("Unrecognised module: "+module);
|
throw new Error("Unrecognised module: "+module);
|
||||||
} else {
|
} else {
|
||||||
for (var i=0;i<info.nodes.length;i++) {
|
for (var i=0;i<info.length;i++) {
|
||||||
checkTypeInUse(module+"/"+info.nodes[i]);
|
checkTypeInUse(module+"/"+info[i]);
|
||||||
}
|
}
|
||||||
return registry.removeModule(module);
|
return registry.removeModule(module);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user