From f9018fc3a87080d8d97c371e29a8f3f0a20ca932 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 25 May 2020 21:33:38 +0300 Subject: Sorry marc1006, I had to revert deepcode.ai arrow function fixes because Python API docs generator does not work all when code has arrow functions. Thanks to xet7 ! --- client/components/cards/cardDetails.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/cards') diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index d877421c..11e010d4 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -812,9 +812,9 @@ Template.copyChecklistToManyCardsPopup.events({ // copy subtasks cursor = Cards.find({ parentId: oldId }); - cursor.forEach(cur => { + cursor.forEach(function() { 'use strict'; - const subtask = cur; + const subtask = arguments[0]; subtask.parentId = _id; subtask._id = null; /* const newSubtaskId = */ Cards.insert(subtask); -- cgit v1.2.3-1-g7c22