fixed to follow nextcloud coding guidelines
Signed-off-by: Elizabeth Danzberger <elizabethdanzberger@gmail.com>
This commit is contained in:
@@ -145,14 +145,16 @@ export default {
|
|||||||
sortCards(when) {
|
sortCards(when) {
|
||||||
const cards = this.assignedCardsDashboard[when]
|
const cards = this.assignedCardsDashboard[when]
|
||||||
|
|
||||||
if (!cards) return null
|
if (!cards) {
|
||||||
|
return null
|
||||||
|
} else {
|
||||||
|
return cards.toSorted((current, next) => {
|
||||||
|
const currentDueDate = new Date(current.duedate)
|
||||||
|
const nextDueDate = new Date(next.duedate)
|
||||||
|
|
||||||
return cards.toSorted((current, next) => {
|
return currentDueDate - nextDueDate
|
||||||
const currentDueDate = new Date(current.duedate)
|
})
|
||||||
const nextDueDate = new Date(next.duedate)
|
}
|
||||||
|
|
||||||
return currentDueDate - nextDueDate
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user