diff --git a/pages/api/availability/eventtype.ts b/pages/api/availability/eventtype.ts index 10d3a2f675..5ceb333d04 100644 --- a/pages/api/availability/eventtype.ts +++ b/pages/api/availability/eventtype.ts @@ -12,7 +12,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (req.method == "PATCH" || req.method == "POST") { const data = { title: req.body.title, - slug: req.body.slug, + slug: req.body.slug.trim(), description: req.body.description, length: parseInt(req.body.length), hidden: req.body.hidden,