Skip to content

Commit

Permalink
Allow creation of connections even with one term on canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali committed Sep 12, 2024
1 parent 3821377 commit 271c695
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/DiagramCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,10 @@ export default class DiagramCanvas extends React.Component<Props> {
...getElementToolPosition(id),
action: (evt: {
currentTarget: { getAttribute: (arg0: string) => any };
}) => {
if (graph.getElements().length > 1)
this.createNewLink(
evt.currentTarget.getAttribute("model-id")
);
},
}) =>
this.createNewLink(
evt.currentTarget.getAttribute("model-id")
),
}),
tool,
],
Expand Down

0 comments on commit 271c695

Please sign in to comment.