[Osquery][Defend Workflows] No responses for alert on flyout (#166916)

https://github.com/elastic/kibana/issues/166040

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

![Screenshot 2023-09-21 at 11 55
08](7758f354-45f5-4ac1-9ea4-b650aca0c082)
This commit is contained in:
Konrad Szwarc 2023-09-29 10:17:30 +02:00 committed by GitHub
parent 280ba7786a
commit c7bb851ded
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
@ -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>
</>
);