Skip to content

Commit

Permalink
Disable editing of a deleted connection (fixes associated crash)
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali committed Sep 12, 2024
1 parent 271c695 commit e0bedff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/DiagramCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,10 @@ export default class DiagramCanvas extends React.Component<Props> {
AppSettings.selectedLinks.includes(linkView.model.id as string) &&
AppSettings.selectedLinks.length === 1
)
addLinkTools(
linkView,
this.props.performTransaction,
this.props.updateElementPanel
);
addLinkTools(linkView, this.props.performTransaction, () => {
this.props.updateElementPanel();
this.props.updateDetailPanel(DetailPanelMode.HIDDEN);
});
},
/**
* Mouse leave on cell:
Expand Down

0 comments on commit e0bedff

Please sign in to comment.