This sets a default for the numTasks variable, in the getDom method, and overwrites it when tasks are set and available.
By doing this the Cannot convert undefined or null to object console error will be prevented.
It is possible that #5 could be closed upon merging this pull request, because it made the MMM-Remote-Control module work again.
This sets a default for the
numTasks
variable, in thegetDom
method, and overwrites it when tasks are set and available. By doing this theCannot convert undefined or null to object
console error will be prevented.It is possible that #5 could be closed upon merging this pull request, because it made the MMM-Remote-Control module work again.