Skip to content

Commit 14bde95

Browse files
Fix after rebase
1 parent 81e4e07 commit 14bde95

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/highlighted_fields.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,12 @@ export const HighlightedFields = memo(
160160

161161
const items = useMemo(
162162
() =>
163-
convertHighlightedFieldsToTableRow(highlightedFields, scopeId, showCellActions, ancestorsIndexName),
163+
convertHighlightedFieldsToTableRow(
164+
highlightedFields,
165+
scopeId,
166+
showCellActions,
167+
ancestorsIndexName
168+
),
164169
[highlightedFields, scopeId, showCellActions, ancestorsIndexName]
165170
);
166171

x-pack/solutions/security/plugins/security_solution/public/flyout/shared/components/preview_link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const PreviewLink: FC<PreviewLinkProps> = ({
6868
field,
6969
scopeId,
7070
ruleId,
71-
ancestorsIndexName
71+
ancestorsIndexName,
7272
}),
7373
[value, field, scopeId, ruleId, ancestorsIndexName]
7474
);

x-pack/solutions/security/plugins/security_solution/public/flyout/shared/utils/link_utils.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
USER_NAME_FIELD_NAME,
1414
SIGNAL_RULE_NAME_FIELD_NAME,
1515
IP_FIELD_TYPE,
16-
EVENT_SOURCE_FIELD_NAME,
1716
} from '../../../timelines/components/timeline/body/renderers/constants';
1817
import { HostPanelKey, UserPanelKey } from '../../entity_details/shared/constants';
1918
import { HostPreviewPanelKey } from '../../entity_details/host_right';
@@ -26,8 +25,9 @@ import {
2625
NETWORK_PREVIEW_BANNER,
2726
} from '../../network_details';
2827
import { RulePanelKey, RulePreviewPanelKey, RULE_PREVIEW_BANNER } from '../../rule_details/right';
29-
import { DocumentDetailsRightPanelKey } from '../../document_details/shared/constants/panel_keys';
28+
import { DocumentDetailsPreviewPanelKey } from '../../document_details/shared/constants/panel_keys';
3029
import { EVENT_PREVIEW_BANNER } from '../../document_details/preview/constants';
30+
import { EVENT_SOURCE_FIELD_DESCRIPTOR } from '../../../common/components/event_details/translations';
3131

3232
// Helper function to check if the field has a flyout link
3333
export const isFlyoutLink = ({
@@ -51,10 +51,15 @@ interface GetFlyoutParams {
5151
field: string;
5252
scopeId: string;
5353
ruleId?: string;
54-
ancestorsIndexName?: string
54+
ancestorsIndexName?: string;
5555
}
5656

57-
const FLYOUT_FIELDS = [HOST_NAME_FIELD_NAME, USER_NAME_FIELD_NAME, SIGNAL_RULE_NAME_FIELD_NAME];
57+
const FLYOUT_FIELDS = [
58+
HOST_NAME_FIELD_NAME,
59+
USER_NAME_FIELD_NAME,
60+
SIGNAL_RULE_NAME_FIELD_NAME,
61+
EVENT_SOURCE_FIELD_DESCRIPTOR,
62+
];
5863

5964
// Helper get function to get flyout parameters based on field name and isFlyoutOpen
6065
// If flyout is currently open, preview panel params are returned
@@ -164,9 +169,9 @@ export const getPreviewPanelParams = ({
164169
isPreviewMode: true,
165170
},
166171
};
167-
case EVENT_SOURCE_FIELD_NAME:
172+
case EVENT_SOURCE_FIELD_DESCRIPTOR:
168173
return {
169-
id: DocumentDetailsRightPanelKey,
174+
id: DocumentDetailsPreviewPanelKey,
170175
params: {
171176
id: value,
172177
scopeId,

0 commit comments

Comments
 (0)