fix: pre-select cluster type in EdgeModal when connecting via cluster handles
This commit is contained in:
@@ -264,6 +264,11 @@ export default function App() {
|
|||||||
open={!!pendingConnection}
|
open={!!pendingConnection}
|
||||||
onClose={() => setPendingConnection(null)}
|
onClose={() => setPendingConnection(null)}
|
||||||
onSubmit={handleEdgeConfirm}
|
onSubmit={handleEdgeConfirm}
|
||||||
|
initial={
|
||||||
|
pendingConnection?.sourceHandle?.includes('cluster') || pendingConnection?.targetHandle?.includes('cluster')
|
||||||
|
? { type: 'cluster' }
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<EdgeModal
|
<EdgeModal
|
||||||
|
|||||||
Reference in New Issue
Block a user