From 83b0602417faef7d4e1b33691619b16062f926b3 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Fri, 2 Jan 2026 14:54:08 +0100 Subject: [PATCH] fix(email-form): filter out empty emails --- .../components/notification-forms/email-form.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/client/modules/notifications/components/notification-forms/email-form.tsx b/app/client/modules/notifications/components/notification-forms/email-form.tsx index 37aef849..43a7daf8 100644 --- a/app/client/modules/notifications/components/notification-forms/email-form.tsx +++ b/app/client/modules/notifications/components/notification-forms/email-form.tsx @@ -93,7 +93,14 @@ export const EmailForm = ({ form }: Props) => { {...field} placeholder="user@example.com, admin@example.com" value={Array.isArray(field.value) ? field.value.join(", ") : ""} - onChange={(e) => field.onChange(e.target.value.split(",").map((email) => email.trim()))} + onChange={(e) => + field.onChange( + e.target.value + .split(",") + .map((email) => email.trim()) + .filter(Boolean), + ) + } /> Comma-separated list of recipient email addresses.