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

Labels and projects are not working correctly when having multiple projects #66

Open mpaxson opened 4 years ago

mpaxson commented 4 years ago

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) {...}
cbrooker commented 4 years ago

I'll take a look later tonight. Thanks.