Merge pull request #374 from emrysal/bugfix/trim-slug-to-fix-404

pull/380/head
Bailey Pumfleet 2021-07-20 15:29:36 +01:00 committed by GitHub
commit 5cf6e61061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,