From 3c42dea10b95405957e766ee461f2096bbdd32e3 Mon Sep 17 00:00:00 2001 From: Virginia Cepeda Date: Thu, 4 May 2023 09:30:25 -0300 Subject: [PATCH] Alerting: Use standard validation/error pattern on group selection (#67787) --- .../alerting/unified/components/rule-editor/FolderAndGroup.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/alerting/unified/components/rule-editor/FolderAndGroup.tsx b/public/app/features/alerting/unified/components/rule-editor/FolderAndGroup.tsx index 2a078322785..6d1f4202942 100644 --- a/public/app/features/alerting/unified/components/rule-editor/FolderAndGroup.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/FolderAndGroup.tsx @@ -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}