MMM-Todoist icon indicating copy to clipboard operation
MMM-Todoist copied to clipboard

Labels and projects are not working correctly when having multiple projects

Open mpaxson opened this issue 5 years ago • 1 comments

If two MMM-Todoist modules are added to the magic mirror, (one in the top left and one in the bottom right) and you want to have one show the tasks of a project with a due date and the other show tasks with a label, if the tasks displayed in the top left are being filtered, they won't be displayed in the bottom right, despite having a different filter.

look at line 5268

   var isAdded=0; // To prevent a task in added twice. Far from fancy, can be improved. But it works.
5269
5270       // Filter using label if a label is configured
-271       if (labelIds.length>0 && item.labels.length > 0) {
6272         // Check all the labels assigned to the task. Add to items if match with configured label
+273         for (let label of item.labels) {...}

mpaxson avatar Feb 16 '20 13:02 mpaxson

I'll take a look later tonight. Thanks.

cbrooker avatar Feb 16 '20 17:02 cbrooker