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/boards/boardBody.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/components/boards/boardBody.js') diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index e70faa49..4e473f18 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -365,12 +365,12 @@ BlazeComponent.extendComponent({ }; currentBoard .cardsInInterval(start.toDate(), end.toDate()) - .forEach(card => { + .forEach(function(card) { pushEvent(card); }); currentBoard .cardsDueInBetween(start.toDate(), end.toDate()) - .forEach(card => { + .forEach(function(card) { pushEvent( card, `${card.title} ${TAPi18n.__('card-due')}`, @@ -378,8 +378,8 @@ BlazeComponent.extendComponent({ new Date(card.dueAt.getTime() + 36e5), ); }); - events.sort((first, second) => { - return first.id === second.id ? 0 : first.id > second.id ? 1 : -1; + events.sort(function(first, second) { + return first.id > second.id ? 1 : -1; }); callback(events); }, -- cgit v1.2.3-1-g7c22