cbrooker / MMM-Todoist

This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
MIT License
151 stars 58 forks source link

getDom undefined is not an object #117

Closed Ryanclbryant closed 1 year ago

Ryanclbryant commented 1 year ago

TypeError: undefined is not an object (evaluating 'this.tasks.items') (anonymous function) (MMM-Todoist.js:579)

 if (this.config.hideWhenEmpty && this.tasks.items.length===0) {
                        return null;
                }

On first load this.tasks is undefined, causes it to throw an error and fail the getDom which prevents MMM to push the DOM_OBJECTS_CREATED notification.

Ryanclbryant commented 1 year ago

Turns out I was a few commits behind. Updated to current and it has already been addressed!