From 6db5e2ef00083f898d9a6557e334ac8e4e90d3a8 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Wed, 24 Sep 2025 14:03:19 +0200 Subject: [PATCH] fix: ensure default search value in KanbanFilters - Updated `setKanbanFilters` to set a default empty string for the search filter when no value is provided, preventing potential undefined behavior and improving filter consistency. --- src/contexts/TasksContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/TasksContext.tsx b/src/contexts/TasksContext.tsx index 996d634..a8cbcc9 100644 --- a/src/contexts/TasksContext.tsx +++ b/src/contexts/TasksContext.tsx @@ -75,7 +75,7 @@ export function TasksProvider({ children, initialTasks, initialTags, initialStat const setKanbanFilters = async (newFilters: KanbanFilters) => { // Séparer les vrais filtres des préférences de vue const kanbanFilterUpdates = { - search: newFilters.search, + search: newFilters.search || '', tags: newFilters.tags, priorities: newFilters.priorities, showCompleted: newFilters.showCompleted,