fix: pre-select cluster type in EdgeModal when connecting via cluster handles

This commit is contained in:
Pouzor
2026-03-08 11:35:30 +01:00
parent f43a94a403
commit 8de4f9b32d
+5
View File
@@ -264,6 +264,11 @@ export default function App() {
open={!!pendingConnection}
onClose={() => setPendingConnection(null)}
onSubmit={handleEdgeConfirm}
initial={
pendingConnection?.sourceHandle?.includes('cluster') || pendingConnection?.targetHandle?.includes('cluster')
? { type: 'cluster' }
: undefined
}
/>
<EdgeModal