[v10.0.x] Alerting: Use standard validation/error pattern on group selection (#67831)
Alerting: Use standard validation/error pattern on group selection (#67787)
(cherry picked from commit 3c42dea10b)
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
This commit is contained in:
co-authored by
Virginia Cepeda
parent
6f4f540e10
commit
c67e84358c
@@ -169,6 +169,7 @@ export function FolderAndGroup({ initialFolder }: FolderAndGroupProps) {
|
||||
inputId="group"
|
||||
key={`my_unique_select_key__${selectedGroup?.title ?? ''}`}
|
||||
{...field}
|
||||
invalid={Boolean(folder) && !selectedGroup.value}
|
||||
loadOptions={debouncedSearch}
|
||||
loadingMessage={'Loading groups...'}
|
||||
defaultOptions={groupOptions}
|
||||
|
||||
Reference in New Issue
Block a user