MMM-Todoist
MMM-Todoist copied to clipboard
Labels and projects are not working correctly when having multiple projects
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) {...}
I'll take a look later tonight. Thanks.