From c67e84358ca99fa21b83c6f57f2d55ea26db03bb Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 4 May 2023 14:45:56 +0100 Subject: [PATCH] [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 3c42dea10b95405957e766ee461f2096bbdd32e3) Co-authored-by: Virginia Cepeda --- .../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}