refactor(flow)!: properly nest components
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -85,7 +85,7 @@ export default (store: FlowStore = useStore()) =>
|
||||
if (!doc) return
|
||||
let validConnectFunc: ValidConnectionFunc = isValidConnection ?? (() => true)
|
||||
if (!isValidConnection) {
|
||||
const node = store.getNodes.find((n) => n.id === nodeId)
|
||||
const node = store.getNode(nodeId)
|
||||
if (node) validConnectFunc = (!isTarget ? node.isValidTargetPos : node.isValidSourcePos) ?? (() => true)
|
||||
}
|
||||
const elementBelow = doc.elementFromPoint(event.clientX, event.clientY)
|
||||
|
||||
Reference in New Issue
Block a user