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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user