mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2386 from khassel/fix_modules_array
removes undefined objects from modules array, see issue #2382
This commit is contained in:
commit
ff1a843de6
@ -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
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user