mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: add group name validation in alert rule form (#59095)
Add group name validation in alert rule form
This commit is contained in:
parent
19e97a1f31
commit
9c4b78ae4f
@ -203,6 +203,9 @@ export function FolderAndGroup({ initialFolder }: FolderAndGroupProps) {
|
||||
control={control}
|
||||
rules={{
|
||||
required: { value: true, message: 'Must enter a group name' },
|
||||
validate: {
|
||||
pathSeparator: (group_: string) => checkForPathSeparator(group_),
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</Field>
|
||||
|
Loading…
Reference in New Issue
Block a user