Skip to content

Commit

Permalink
[Osquery][Defend Workflows] No responses for alert on flyout (elastic…
Browse files Browse the repository at this point in the history
…#166916)

elastic#166040

Inform user that there are no responses associated with and alert
instead of returning `null`.

![Screenshot 2023-09-21 at 11 55
08](https://github.com/elastic/kibana/assets/29123534/7758f354-45f5-4ac1-9ea4-b650aca0c082)
  • Loading branch information
szwarckonrad authored Sep 29, 2023
1 parent 280ba77 commit c7bb851
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import styled from 'styled-components';
import type { EuiTabbedContentTab } from '@elastic/eui';
import { EuiNotificationBadge, EuiSpacer } from '@elastic/eui';
import type { Ecs } from '@kbn/cases-plugin/common';
import { FormattedMessage } from '@kbn/i18n-react';
import type { SearchHit } from '../../../../common/search_strategy';
import type {
ExpandedEventFieldsObject,
Expand Down Expand Up @@ -71,7 +72,12 @@ export const useResponseActionsView = <T extends object = JSX.Element>({
ruleName={ruleName}
ecsData={ecsData}
/>
) : null}
) : (
<FormattedMessage
id="xpack.securitySolution.eventDetails.responseActionsViewNoActions"
defaultMessage="There are no response actions defined for this event."
/>
)}
</TabContentWrapper>
</>
);
Expand Down

0 comments on commit c7bb851

Please sign in to comment.