Skip to content

Commit 14936ec

Browse files
committed
feat(admin): trim bloc text input in CompetenciesBlockPage to avoid empty text
1 parent 8c41450 commit 14936ec

File tree

1 file changed

+1
-1
lines changed
  • packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/competencies-blocks/[blocDeCompetencesId]

1 file changed

+1
-1
lines changed

packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/competencies-blocks/[blocDeCompetencesId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const schema = z.object({
2828
}),
2929
})
3030
.array(),
31-
blocText: z.string().min(1, "Merci de remplir ce champ"),
31+
blocText: z.string().trim().min(1, "Merci de remplir ce champ"),
3232
});
3333

3434
type FormData = z.infer<typeof schema>;

0 commit comments

Comments
 (0)