forked from vikunja/frontend
Only reload tasks when filtering on due date and due date is set on the updated task
This commit is contained in:
parent
d0998b31c8
commit
d12a8f94ca
|
@ -271,8 +271,10 @@ function updateTasks(updatedTask: ITask) {
|
||||||
// FIXME: Use computed
|
// FIXME: Use computed
|
||||||
sortTasks(tasks.value)
|
sortTasks(tasks.value)
|
||||||
|
|
||||||
// After a task has been updated, reload tasks to ensure filters are applied to any changes
|
// After a task has been updated, reload tasks to ensure filters are applied to any changes if filters are set
|
||||||
loadTasks()
|
if (updatedTask.dueDate !== null && params.value.filter_by.includes('due_date')) {
|
||||||
|
loadTasks()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveTaskPosition(e) {
|
async function saveTaskPosition(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user