Commit e25c747 1 parent f7549fc commit e25c747 Copy full SHA for e25c747
File tree 2 files changed +6
-4
lines changed
opencti-platform/opencti-front/src/private/components/common
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,6 @@ const ContainerHeader = (props) => {
655
655
containerId = { container . id }
656
656
currentMode = { currentMode }
657
657
onApplied = { onApplied }
658
- instanceName = { getMainRepresentative ( container ) }
659
658
containerHeaderObjectsQuery = { containerHeaderObjectsQuery }
660
659
container = { container }
661
660
/>
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
19
19
} from '@mui/material' ;
20
20
import { AddTaskOutlined , AssistantOutlined } from '@mui/icons-material' ;
21
21
import { useTheme } from '@mui/styles' ;
22
+ import { getMainRepresentative } from '../../../../utils/defaultRepresentatives' ;
22
23
import { commitMutation , MESSAGING$ , QueryRenderer } from '../../../../relay/environment' ;
23
24
import { stixCoreRelationshipCreationMutation } from '../stix_core_relationships/StixCoreRelationshipCreation' ;
24
25
import { containerAddStixCoreObjectsLinesRelationAddMutation } from '../containers/ContainerAddStixCoreObjectsLines' ;
@@ -33,7 +34,6 @@ const StixCoreObjectsSuggestionsComponent = (props) => {
33
34
container,
34
35
currentMode,
35
36
onApplied,
36
- instanceName,
37
37
containerHeaderObjectsQuery,
38
38
} = props ;
39
39
const theme = useTheme ( ) ;
@@ -370,8 +370,11 @@ const StixCoreObjectsSuggestionsComponent = (props) => {
370
370
value = { selectedEntity [ suggestion . type ] }
371
371
>
372
372
{ suggestion . data . map ( ( object ) => (
373
- < MenuItem key = { object . id } value = { object . id } >
374
- { instanceName }
373
+ < MenuItem
374
+ key = { object . id }
375
+ value = { object . id }
376
+ >
377
+ { getMainRepresentative ( object ) }
375
378
</ MenuItem >
376
379
) ) }
377
380
</ Select >
You can’t perform that action at this time.
0 commit comments