Compensate for incomplete config data (e.g. test)

This commit is contained in:
Ralph Wetzel 2023-10-18 08:06:15 +02:00
parent 3275a76fb0
commit 1704ab7454

View File

@ -401,7 +401,7 @@ function getModuleInfo(module) {
m.nodes.push(nodeInfo); m.nodes.push(nodeInfo);
} }
let plugins = Object.values(moduleConfigs[module].plugins); let plugins = Object.values(moduleConfigs[module].plugins ?? {});
plugins.forEach((plugin) => { plugins.forEach((plugin) => {
let nodeInfo = filterNodeInfo(plugin); let nodeInfo = filterNodeInfo(plugin);
nodeInfo.version = m.version; nodeInfo.version = m.version;