We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188855d commit 33cbeddCopy full SHA for 33cbedd
1 file changed
src/packages/ce/src/runtime/pages/RuntimeCreatePage.tsx
@@ -48,16 +48,19 @@ export const RuntimeCreatePage: React.FC = () => {
48
const [inputs, validate] = useForm({
49
useInitialValidation: false,
50
initialValues: {
51
- name: null,
52
- description: null,
+ name: "",
+ description: "",
53
},
54
validate: {
55
name: (value) => {
56
if (!value) return "Name is required"
57
+ if (value.length < 3) return "Name needs to be at least 3 characters"
58
+ if (value.length > 50) return "Name needs to be less than 50 characters"
59
return null
60
61
description: (value) => {
62
if (!value) return "Description is required"
63
+ if ((value as string).length > 50) return "Description needs to be less than 50 characters"
64
65
}
66
0 commit comments