Skip to content

Commit

Permalink
Make template search case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Feb 13, 2024
1 parent 238298b commit 58662e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const TemplatesListView: React.FC<ITemplatesListViewProps> = ({
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;
Expand Down

0 comments on commit 58662e1

Please sign in to comment.