mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +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)
|
- fix package.json for optional electron dependency (2378)
|
||||||
- update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
|
- update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
|
||||||
- Added missing function call in module.show()
|
- Added missing function call in module.show()
|
||||||
|
- remove undefined objects from modules array (#2382)
|
||||||
|
|
||||||
## [2.13.0] - 2020-10-01
|
## [2.13.0] - 2020-10-01
|
||||||
|
|
||||||
|
@ -500,10 +500,7 @@ var MM = (function () {
|
|||||||
*/
|
*/
|
||||||
modulesStarted: function (moduleObjects) {
|
modulesStarted: function (moduleObjects) {
|
||||||
modules = [];
|
modules = [];
|
||||||
for (var m in moduleObjects) {
|
moduleObjects.forEach((module) => modules.push(module));
|
||||||
var module = moduleObjects[m];
|
|
||||||
modules[module.data.index] = module;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.info("All modules started!");
|
Log.info("All modules started!");
|
||||||
sendNotification("ALL_MODULES_STARTED");
|
sendNotification("ALL_MODULES_STARTED");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user