Only reload tasks when filtering on due date and due date is set on the updated task

This commit is contained in:
Sean Hurley 2023-02-16 23:11:59 -07:00
parent 5e51b144c2
commit 88e583f786
1 changed files with 4 additions and 2 deletions

View File

@ -258,8 +258,10 @@ function updateTasks(updatedTask: ITask) {
}
}
// After a task has been updated, reload tasks to ensure filters are applied to any changes
loadTasks()
// After a task has been updated, reload tasks to ensure filters are applied to any changes if filters are set
if (updatedTask.dueDate !== null && params.value.filter_by.includes('due_date')) {
loadTasks()
}
}
async function saveTaskPosition(e) {