From 58662e1434a882011bddc504b964a616c019d6f4 Mon Sep 17 00:00:00 2001 From: Konstantin Markov Date: Tue, 13 Feb 2024 13:12:18 +0200 Subject: [PATCH] Make template search case insensitive --- client/components/PlanningTemplatesModal/TemplatesListView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/PlanningTemplatesModal/TemplatesListView.tsx b/client/components/PlanningTemplatesModal/TemplatesListView.tsx index b3092de71..f39475b85 100644 --- a/client/components/PlanningTemplatesModal/TemplatesListView.tsx +++ b/client/components/PlanningTemplatesModal/TemplatesListView.tsx @@ -21,7 +21,7 @@ export const TemplatesListView: React.FC = ({ createEventFromTemplate, }: ITemplatesListViewProps) => { const searchQueryTemplateMatches = eventTemplates - .filter((template) => template.template_name.includes(searchQuery)); + .filter((template) => template.template_name.toLowerCase().includes(searchQuery.toLowerCase())); const calendarsFiltered = activeCalendarFilter ? [calendars.find(({qcode}) => activeCalendarFilter === qcode)] : calendars;