File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/containers/Cluster/ClusterInfo Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export const ClusterInfo = ({
31
31
const { info = [ ] , links = [ ] } = additionalClusterProps ;
32
32
33
33
const clusterLinks = useClusterLinks ( ) ;
34
+ const linksList = links . concat ( clusterLinks ) ;
34
35
35
36
const clusterInfo = getInfo ( cluster ?? { } , info ) ;
36
37
@@ -56,15 +57,12 @@ export const ClusterInfo = ({
56
57
} ;
57
58
58
59
const renderLinks = ( ) => {
59
- if ( links . length || clusterLinks . length ) {
60
+ if ( linksList . length ) {
60
61
return (
61
62
< div >
62
63
< div className = { b ( 'section-title' ) } > { i18n ( 'title_links' ) } </ div >
63
64
< Flex direction = "column" gap = { 4 } >
64
- { links . map ( ( { title, url} ) => {
65
- return < LinkWithIcon key = { title } title = { title } url = { url } /> ;
66
- } ) }
67
- { clusterLinks . map ( ( { title, url} ) => {
65
+ { linksList . map ( ( { title, url} ) => {
68
66
return < LinkWithIcon key = { title } title = { title } url = { url } /> ;
69
67
} ) }
70
68
</ Flex >
You can’t perform that action at this time.
0 commit comments