diff --git a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerHeader.jsx b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerHeader.jsx index 24cdff843c4d..261d968388eb 100644 --- a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerHeader.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerHeader.jsx @@ -655,7 +655,6 @@ const ContainerHeader = (props) => { containerId={container.id} currentMode={currentMode} onApplied={onApplied} - instanceName={getMainRepresentative(container)} containerHeaderObjectsQuery={containerHeaderObjectsQuery} container={container} /> diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectsSuggestions.jsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectsSuggestions.jsx index 10cf442a79d0..61ea7defc078 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectsSuggestions.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectsSuggestions.jsx @@ -19,6 +19,7 @@ import { } from '@mui/material'; import { AddTaskOutlined, AssistantOutlined } from '@mui/icons-material'; import { useTheme } from '@mui/styles'; +import { getMainRepresentative } from '../../../../utils/defaultRepresentatives'; import { commitMutation, MESSAGING$, QueryRenderer } from '../../../../relay/environment'; import { stixCoreRelationshipCreationMutation } from '../stix_core_relationships/StixCoreRelationshipCreation'; import { containerAddStixCoreObjectsLinesRelationAddMutation } from '../containers/ContainerAddStixCoreObjectsLines'; @@ -33,7 +34,6 @@ const StixCoreObjectsSuggestionsComponent = (props) => { container, currentMode, onApplied, - instanceName, containerHeaderObjectsQuery, } = props; const theme = useTheme(); @@ -370,8 +370,11 @@ const StixCoreObjectsSuggestionsComponent = (props) => { value={selectedEntity[suggestion.type]} > {suggestion.data.map((object) => ( - - {instanceName} + + {getMainRepresentative(object)} ))}