We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252adb3 commit b4ffbc6Copy full SHA for b4ffbc6
src/components/Edges/EdgeController/smart-edge.ts
@@ -523,9 +523,9 @@ export class SmartEdge {
523
};
524
525
rebuildEdge = (points: ControlPoint[]) => {
526
- const edge: ReactflowEdgeWithData = kReactflow.instance!.getEdge(
+ const edge = kReactflow.instance!.getEdge(
527
this.ctx.id
528
- )!;
+ )! as ReactflowEdgeWithData;
529
edge.data!.layout!.points = reducePoints(points);
530
rebuildEdge(this.ctx.id);
531
src/data/types.ts
@@ -4,7 +4,7 @@ import { ControlPoint } from "../layout/edge/point";
4
5
interface WorkflowNode extends Record<string, unknown> {
6
id: string;
7
- type: string;
+ type: "base" | "start";
8
}
9
10
interface WorkflowEdge {
0 commit comments