Skip to content

Commit

Permalink
delete correlation alert trigger fix
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Oct 9, 2024
1 parent 41eab22 commit 104e1ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,11 @@ export const CreateCorrelationRule: React.FC<CreateCorrelationRuleProps> = (
data-test-subj="delete-alert-trigger-icon"
iconType="trash"
color="danger"
onClick={() => setShowForm(false)}
onClick={() => {
// Clear the trigger values by setting them to an empty object or your initial state
props.setFieldValue('trigger', {}); // Assuming an empty object represents no trigger
setShowForm(false); // Optionally hide the form if that's desired
}}
/>
</EuiCompressedFormRow>
</EuiFlexItem>
Expand Down

0 comments on commit 104e1ec

Please sign in to comment.