Merge pull request #2386 from khassel/fix_modules_array

removes undefined objects from modules array, see issue #2382
This commit is contained in:
Michael Teeuw 2020-12-29 23:01:25 +01:00 committed by GitHub
commit ff1a843de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -57,6 +57,7 @@ _This release is scheduled to be released on 2021-01-01._
- fix package.json for optional electron dependency (2378)
- update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
- Added missing function call in module.show()
- remove undefined objects from modules array (#2382)
## [2.13.0] - 2020-10-01

View File

@ -500,10 +500,7 @@ var MM = (function () {
*/
modulesStarted: function (moduleObjects) {
modules = [];
for (var m in moduleObjects) {
var module = moduleObjects[m];
modules[module.data.index] = module;
}
moduleObjects.forEach((module) => modules.push(module));
Log.info("All modules started!");
sendNotification("ALL_MODULES_STARTED");