diff --git a/apps/admin-server/src/pages/projects/[project]/tags/create.tsx b/apps/admin-server/src/pages/projects/[project]/tags/create.tsx index 3f8f139d5..4d2a747e9 100644 --- a/apps/admin-server/src/pages/projects/[project]/tags/create.tsx +++ b/apps/admin-server/src/pages/projects/[project]/tags/create.tsx @@ -38,7 +38,7 @@ export default function ProjectTagCreate() { async function onSubmit(values: z.infer) { const tags = await createTag(values.name, values.type, values.seqnr); - if (tags) { + if (tags && tags.status === 200) { toast.success('Tag aangemaakt!'); router.push(`/projects/${project}/tags`); } else {