From 584d2bcb9123e3a5c10d6ed6cf6c1d37c13694a9 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Wed, 10 Apr 2024 17:08:56 +0100 Subject: [PATCH] Remove useEffect that was setting incorrect display value for pending period --- .../components/rule-editor/GrafanaEvaluationBehavior.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/GrafanaEvaluationBehavior.tsx b/public/app/features/alerting/unified/components/rule-editor/GrafanaEvaluationBehavior.tsx index 2311d815bc3..247e49c2ed2 100644 --- a/public/app/features/alerting/unified/components/rule-editor/GrafanaEvaluationBehavior.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/GrafanaEvaluationBehavior.tsx @@ -105,11 +105,6 @@ function FolderGroupAndEvaluationInterval({ setIsEditingGroup(false); }; - // when the group evaluation interval changes, update the pending period to match - useEffect(() => { - setValue('evaluateFor', evaluateEvery); - }, [evaluateEvery, setValue]); - const onOpenEditGroupModal = () => setIsEditingGroup(true); const editGroupDisabled = groupfoldersForGrafana?.loading || isNewGroup || !folderUid || !groupName;