mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Use an arrow function inside forEach() instead of an anonymous function
Suggested by deepcode.ai.
This commit is contained in:
parent
06515559a6
commit
b2fee6a6c1
5 changed files with 9 additions and 9 deletions
|
|
@ -805,9 +805,9 @@ Template.copyChecklistToManyCardsPopup.events({
|
|||
|
||||
// copy subtasks
|
||||
cursor = Cards.find({ parentId: oldId });
|
||||
cursor.forEach(function() {
|
||||
cursor.forEach(cur => {
|
||||
'use strict';
|
||||
const subtask = arguments[0];
|
||||
const subtask = cur;
|
||||
subtask.parentId = _id;
|
||||
subtask._id = null;
|
||||
/* const newSubtaskId = */ Cards.insert(subtask);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue