diff options
author | Marc Hartmayer <hello@hartmayer.com> | 2020-05-24 12:37:54 +0200 |
---|---|---|
committer | Marc Hartmayer <hello@hartmayer.com> | 2020-05-24 12:44:14 +0200 |
commit | b2fee6a6c196f2ed2788444ad2387fba8f6df9cb (patch) | |
tree | d4b90757af23c3afa7e41b15f0bf2f60673d9178 /client/components/cards/cardDetails.js | |
parent | 06515559a62a9caea7e31326c381dac0d40f710b (diff) | |
download | wekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.tar.gz wekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.tar.bz2 wekan-b2fee6a6c196f2ed2788444ad2387fba8f6df9cb.zip |
Use an arrow function inside forEach() instead of an anonymous function
Suggested by deepcode.ai.
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 441068b0..a57eddf9 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -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); |