fixed to follow nextcloud coding guidelines

Signed-off-by: Elizabeth Danzberger <elizabethdanzberger@gmail.com>
This commit is contained in:
Elizabeth Danzberger
2024-01-19 13:38:09 -05:00
parent a6fc696373
commit 220f91fdc5

View File

@@ -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) => { return cards.toSorted((current, next) => {
const currentDueDate = new Date(current.duedate) const currentDueDate = new Date(current.duedate)
const nextDueDate = new Date(next.duedate) const nextDueDate = new Date(next.duedate)
return currentDueDate - nextDueDate return currentDueDate - nextDueDate
}) })
}
}, },
}, },