@@ -49,9 +49,9 @@ ExternalReferenceComponentProps
49
49
< ExternalReferenceHeader
50
50
externalReference = { externalReference }
51
51
PopoverComponent = {
52
- < ExternalReferencePopover id = { '' } handleRemove = { undefined } />
52
+ < ExternalReferencePopover id = { externalReference . id } handleRemove = { undefined } />
53
53
}
54
- EditComponent = { (
54
+ EditComponent = { isFABReplaced && (
55
55
< Security needs = { [ KNOWLEDGE_KNUPDATE ] } >
56
56
< ExternalReferenceEdition externalReferenceId = { externalReference . id } />
57
57
</ Security >
@@ -62,42 +62,41 @@ ExternalReferenceComponentProps
62
62
spacing = { 3 }
63
63
classes = { { container : classes . gridContainer } }
64
64
>
65
- {
66
- overviewLayoutCustomization . map ( ( { key, width } ) => {
67
- switch ( key ) {
68
- case 'basicInformation' :
69
- return (
70
- < Grid key = { key } item xs = { width } >
71
- < ExternalReferenceOverview externalReference = { externalReference } />
72
- </ Grid >
73
- ) ;
74
- case 'details' :
75
- return (
76
- < Grid key = { key } item xs = { width } >
77
- < ExternalReferenceDetails externalReference = { externalReference } />
78
- </ Grid >
79
- ) ;
80
- case 'linkedObjects' :
81
- return (
82
- < Grid key = { key } item xs = { width } >
83
- < ExternalReferenceStixCoreObjects
84
- externalReference = { externalReference }
85
- />
86
- </ Grid >
87
- ) ;
88
- case 'uploadedFiles' :
89
- return (
90
- < Grid key = { key } item xs = { width } >
91
- < ExternalReferenceFileImportViewer
92
- externalReference = { externalReference }
93
- connectorsImport = { connectorsImport }
94
- />
95
- </ Grid >
96
- ) ;
97
- default :
98
- return null ;
99
- }
100
- } )
65
+ { overviewLayoutCustomization . map ( ( { key, width } ) => {
66
+ switch ( key ) {
67
+ case 'basicInformation' :
68
+ return (
69
+ < Grid key = { key } item xs = { width } >
70
+ < ExternalReferenceOverview externalReference = { externalReference } />
71
+ </ Grid >
72
+ ) ;
73
+ case 'details' :
74
+ return (
75
+ < Grid key = { key } item xs = { width } >
76
+ < ExternalReferenceDetails externalReference = { externalReference } />
77
+ </ Grid >
78
+ ) ;
79
+ case 'linkedObjects' :
80
+ return (
81
+ < Grid key = { key } item xs = { width } >
82
+ < ExternalReferenceStixCoreObjects
83
+ externalReference = { externalReference }
84
+ />
85
+ </ Grid >
86
+ ) ;
87
+ case 'uploadedFiles' :
88
+ return (
89
+ < Grid key = { key } item xs = { width } >
90
+ < ExternalReferenceFileImportViewer
91
+ externalReference = { externalReference }
92
+ connectorsImport = { connectorsImport }
93
+ />
94
+ </ Grid >
95
+ ) ;
96
+ default :
97
+ return null ;
98
+ }
99
+ } )
101
100
}
102
101
</ Grid >
103
102
{ ! isFABReplaced && (
0 commit comments