Open BoujeeBoba opened 3 years ago
Yup I have the same. End up having to leave a single item in the list. When this is used as a shopping list there can be a lot of milk bought when it isn't needed. :)
the same problem !!!!I don't want to buy more milk !!! How could we make the header disappear? when the list is empty ...Thx!!
I believe there's a related issue that can come up caused by the check of this.tasks.items.length
on line 564 throwing an error because that value is undefined at the time. It was causing other widgets on my page to not render.
I'd love to throw in a PR, I just don't have a dev setup for working on MM modules right now, but if I can get one together I'll try and get a PR together.
Same problem here. the check of this.tasks.items.length on line 564 causing other widgets on my page to not render. If I put false in "hideWhenEmpty" nothing is display on Todoist, but other widgets working.
Same here. When 'hideWhenEmpty: true' it throws
TypeError: Cannot read property 'items' of undefined at Class.getDom (MMM-Todoist.js:564)
`getDom: function () {
if (this.config.hideWhenEmpty && this.tasks.items.length===0) {
return null;
}`
This prevents following modules to load. Workaround is to set 'hideWhenEmpty: false'
I have enabled the hideWhenEmpty parameter for this module but I can't get the header to disappear when the list is empty. The code in my config is setup as shown here:
I have waited for the mirror to refresh as well as start the mirror with an empty list and the header still appears, has anyone else run into this issue?