From e5d06d209fe93e03f80c3554503c25db797851cc Mon Sep 17 00:00:00 2001 From: Angela Chuang Date: Tue, 3 Aug 2021 11:42:44 +0100 Subject: [PATCH] update AddEndpointExceptionComponent --- .../alerts_table/timeline_actions/add_exception.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/add_exception.tsx b/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/add_exception.tsx index c452682355e91..030f67c9e708c 100644 --- a/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/add_exception.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/add_exception.tsx @@ -11,18 +11,11 @@ import * as i18n from '../translations'; interface AddExceptionProps { disabled?: boolean; - eventKind?: string | null | undefined; onClick: () => void; - ruleId: string | null | undefined; } -const AddExceptionComponent: React.FC = ({ - disabled, - eventKind, - onClick, - ruleId, -}) => { - return eventKind === 'event' && ruleId ? ( +const AddExceptionComponent: React.FC = ({ disabled, onClick }) => { + return ( = ({ {i18n.ACTION_ADD_EXCEPTION} - ) : null; + ); }; export const AddException = React.memo(AddExceptionComponent);