make name required (#2100)

This commit is contained in:
Jenny 2022-02-21 13:13:25 -05:00 committed by GitHub
parent 41d58ab1b3
commit 816d2b5221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,7 @@ export default function PermissionDetails() {
<FormProvider {...form}>
<FormGroup
label={t("common:name")}
isRequired
fieldId="name"
labelIcon={
<HelpItem
@ -198,7 +199,11 @@ export default function PermissionDetails() {
/>
}
>
<TextInput id="name" name="name" ref={register} />
<TextInput
id="name"
name="name"
ref={register({ required: true })}
/>
</FormGroup>
<FormGroup
label={t("common:description")}