Merge pull request #1483 from Salman2301/fix-org-long-name

fix: truncate too long proj or org name
This commit is contained in:
Daniel Hougaard
2024-03-12 10:22:06 +01:00
committed by GitHub
7 changed files with 29 additions and 14 deletions
@@ -10,7 +10,11 @@ import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@a
import { useUpdateOrg } from "@app/hooks/api";
const formSchema = yup.object({
name: yup.string().required().label("Project Name")
name: yup
.string()
.required()
.label("Organization Name")
.max(64, "Too long, maximum length is 64 characters")
});
type FormData = yup.InferType<typeof formSchema>;