Merge pull request #4838 from lorenz-maurer/lorenz-maurer-patch-1
Some checks are pending
Run tests / build (18) (push) Waiting to run
Run tests / build (20) (push) Waiting to run
Run tests / build (22.4.x) (push) Waiting to run

fix: modulesInUse might be undefined
This commit is contained in:
Nick O'Leary 2024-08-12 09:26:38 +01:00 committed by GitHub
commit a4ec0f7959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,7 +308,7 @@ RED.projects.settings = (function() {
if (activeProject.dependencies) {
for (var m in activeProject.dependencies) {
if (activeProject.dependencies.hasOwnProperty(m)) {
var installed = !!RED.nodes.registry.getModule(m) && activeProject.dependencies[m] === modulesInUse[m].version;
var installed = !!RED.nodes.registry.getModule(m) && activeProject.dependencies[m] === modulesInUse[m]?.version;
depsList.editableList('addItem',{
id: m,
version: activeProject.dependencies[m], //RED.nodes.registry.getModule(module).version,