Fix union SQL and selection previews
This commit is contained in:
@@ -26,6 +26,7 @@ import DataflowNode, { type DataflowFlowNode } from "./DataflowNode";
|
||||
import {
|
||||
closestProximityConnection,
|
||||
graphEdgesFromFlow,
|
||||
newGraphEdgeId,
|
||||
proximityPreviewEdge
|
||||
} from "./graphInteractions";
|
||||
import { FALLBACK_NODE_LIBRARY, newNode } from "./model";
|
||||
@@ -164,7 +165,7 @@ export default function DataflowCanvas({
|
||||
const next = addEdge(
|
||||
{
|
||||
...connection,
|
||||
id: `edge-${connection.source}-${connection.target}-${crypto.randomUUID()}`,
|
||||
id: newGraphEdgeId(),
|
||||
type: "smoothstep"
|
||||
},
|
||||
edges
|
||||
@@ -280,7 +281,7 @@ export default function DataflowCanvas({
|
||||
const nextEdges = addEdge(
|
||||
{
|
||||
...connection,
|
||||
id: `edge-${crypto.randomUUID()}`,
|
||||
id: newGraphEdgeId(),
|
||||
type: "smoothstep",
|
||||
className: "dataflow-edge"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user