Skip to content

Commit 20d8c64

Browse files
authored
Merge pull request #4474 from Zacgoose/editalertintervalfix
2 parents e780c29 + 8d6c962 commit 20d8c64

File tree

1 file changed

+6
-2
lines changed
  • src/pages/tenant/administration/alert-configuration

1 file changed

+6
-2
lines changed

src/pages/tenant/administration/alert-configuration/alert.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,13 @@ const AlertWizard = () => {
253253
recommendedOption.label += " (Recommended)";
254254
}
255255
setRecurrenceOptions(updatedRecurrenceOptions);
256-
formControl.setValue("recurrence", recommendedOption);
256+
257+
// Only set the recommended recurrence if we're NOT editing an existing alert
258+
if (!editAlert) {
259+
formControl.setValue("recurrence", recommendedOption);
260+
}
257261
}
258-
}, [commandValue]);
262+
}, [commandValue, editAlert]);
259263

260264
useEffect(() => {
261265
// Logic to handle template-based form updates when a preset is selected

0 commit comments

Comments
 (0)