diff --git a/public/pages/Correlations/containers/CreateCorrelationRule.tsx b/public/pages/Correlations/containers/CreateCorrelationRule.tsx index 40e2dc05..3a2ed4ab 100644 --- a/public/pages/Correlations/containers/CreateCorrelationRule.tsx +++ b/public/pages/Correlations/containers/CreateCorrelationRule.tsx @@ -234,7 +234,6 @@ export const CreateCorrelationRule: React.FC = ( setNotificationChannels(parsedChannels); setLoadingNotifications(false); }; - if (props.history.location.state?.rule) { setAction('Edit'); setInitialValues(props.history.location.state?.rule); @@ -245,7 +244,6 @@ export const CreateCorrelationRule: React.FC = ( setInitialValues(ruleRes); } }; - setAction('Edit'); setInitialRuleValues(); } @@ -390,6 +388,7 @@ export const CreateCorrelationRule: React.FC = ( query.field = ''; }); } + // Modify or set default values for trigger if present if (values.trigger) { // Set default values for ids