File tree Expand file tree Collapse file tree
packages/react-ui/src/app/features/builder/step-settings/block-settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,23 +181,25 @@ const ConnectionSelect = memo((params: ConnectionSelectProps) => {
181181
182182 { field . value && ! field . disabled && ! params . disabled && (
183183 < div className = "shrink-0 flex items-center gap-1" >
184- < Button
185- type = "button"
186- variant = "ghost"
187- size = "xs"
188- className = "text-primary-700 text-base font-medium"
189- onPointerDown = { suppressPointerOrMouseDown }
190- onMouseDown = { suppressPointerOrMouseDown }
191- onKeyDown = { makeActivationKeysHandler ( ( e ) =>
192- handleReconnectClick ( e ) ,
193- ) }
194- onClick = { ( e ) => {
195- handleReconnectClick ( e ) ;
196- } }
197- >
198- < PencilLine size = { 16 } />
199- { t ( 'Edit' ) }
200- </ Button >
184+ { selectConnectionOpen && (
185+ < Button
186+ type = "button"
187+ variant = "ghost"
188+ size = "xs"
189+ className = "text-primary-700 text-base font-medium"
190+ onPointerDown = { suppressPointerOrMouseDown }
191+ onMouseDown = { suppressPointerOrMouseDown }
192+ onKeyDown = { makeActivationKeysHandler ( ( e ) =>
193+ handleReconnectClick ( e ) ,
194+ ) }
195+ onClick = { ( e ) => {
196+ handleReconnectClick ( e ) ;
197+ } }
198+ >
199+ < PencilLine size = { 16 } />
200+ { t ( 'Edit' ) }
201+ </ Button >
202+ ) }
201203
202204 < Button
203205 type = "button"
You can’t perform that action at this time.
0 commit comments