From d12a8f94ca84c289160d12e92f66d6e5c50f4557 Mon Sep 17 00:00:00 2001 From: Sean Hurley Date: Thu, 16 Feb 2023 23:11:59 -0700 Subject: [PATCH] Only reload tasks when filtering on due date and due date is set on the updated task --- src/views/list/ListList.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/list/ListList.vue b/src/views/list/ListList.vue index 0e7188fa1..cb4ce5706 100644 --- a/src/views/list/ListList.vue +++ b/src/views/list/ListList.vue @@ -271,8 +271,10 @@ function updateTasks(updatedTask: ITask) { // FIXME: Use computed sortTasks(tasks.value) - // 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) {