Skip to content

Commit c6d21e7

Browse files
author
Jan-Joost
committed
Implement forEach instead of mapping the list of tasks because that is not actually what is happening
1 parent 7634d2b commit c6d21e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MMM-GoogleTasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Module.register("MMM-GoogleTasks", {
9494
this.tasks
9595
.filter((task) => task.parent === undefined) // Filter tasks to only parent tasks
9696
.sort((a, b) => (a.position > b.position ? 1 : -1)) // Sort parent tasks by position
97-
.map((task) => {
97+
.forEach((task) => {
9898
// Map over parents to create reordered list of tasks
9999
temp.push(task);
100100

0 commit comments

Comments
 (0)