fix: don't try to sort tasks when none were returned
This commit is contained in:
parent
42303e37df
commit
8cdcfaf071
1 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
const tasks = await this.$store.dispatch('tasks/loadTasks', params)
|
const tasks = await this.$store.dispatch('tasks/loadTasks', params)
|
||||||
|
if (!tasks) {
|
||||||
|
// When no tasks where returned, we won't be able to sort them.
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: sort tasks in computed
|
// FIXME: sort tasks in computed
|
||||||
// Sort all tasks to put those with a due date before the ones without a due date, the
|
// Sort all tasks to put those with a due date before the ones without a due date, the
|
||||||
|
|
Loading…
Reference in a new issue