Merge pull request #4939 from GogoVega/fix-4831

Fix `setModulePendingUpdated` with plugins
This commit is contained in:
Nick O'Leary 2024-11-08 11:26:52 +00:00 committed by GitHub
commit 0590d81e80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,13 @@ RED.nodes = (function() {
var exports = {
setModulePendingUpdated: function(module,version) {
moduleList[module].pending_version = version;
if (!!RED.plugins.getModule(module)) {
// The module updated is a plugin
RED.plugins.getModule(module).pending_version = version;
} else {
moduleList[module].pending_version = version;
}
RED.events.emit("registry:module-updated",{module:module,version:version});
},
getModule: function(module) {