mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 02:36:09 +01:00
Code cleanup
This commit is contained in:
parent
be970e4cea
commit
9061180983
6 changed files with 51 additions and 53 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
|
||||
const subManager = new SubsManager();
|
||||
// const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
myCardsSort() {
|
||||
|
|
@ -180,8 +180,8 @@ class MyCardsComponent extends CardSearchPagedComponent {
|
|||
});
|
||||
|
||||
cards.sort((a, b) => {
|
||||
const x = a.dueAt === null ? Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? Date('2100-12-31') : b.dueAt;
|
||||
const x = a.dueAt === null ? new Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? new Date('2100-12-31') : b.dueAt;
|
||||
|
||||
if (x > y) return 1;
|
||||
else if (x < y) return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue