File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
src/neo4j-arc/common/components/PropertiesTable Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -108,23 +108,25 @@ export const PropertiesTable = ({
108
108
textToCopy = { `${ key } : ${ value } ` }
109
109
iconSize = { 12 }
110
110
/>
111
- { key === 'cypher' && executeCypher && value && (
112
- < CypherExecDiv >
113
- < button
114
- title = { 'Execute cypher' }
115
- onClick = { ( ) => {
116
- if ( executeCypher && value ) {
117
- executeCypher ( value )
118
- }
119
- } }
120
- >
121
- < i
122
- className = "fa fa-external-link"
123
- aria-hidden = "true"
124
- > </ i >
125
- </ button >
126
- </ CypherExecDiv >
127
- ) }
111
+ { key . toLowerCase ( ) . includes ( 'cypher' ) &&
112
+ executeCypher &&
113
+ value && (
114
+ < CypherExecDiv >
115
+ < button
116
+ title = { 'Execute cypher' }
117
+ onClick = { ( ) => {
118
+ if ( executeCypher && value ) {
119
+ executeCypher ( value )
120
+ }
121
+ } }
122
+ >
123
+ < i
124
+ className = "fa fa-external-link"
125
+ aria-hidden = "true"
126
+ > </ i >
127
+ </ button >
128
+ </ CypherExecDiv >
129
+ ) }
128
130
</ td >
129
131
</ tr >
130
132
) ) }
You can’t perform that action at this time.
0 commit comments