mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
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 !
This commit is contained in:
parent
252c4b19f9
commit
f9018fc3a8
5 changed files with 12 additions and 12 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue