Skip to content

Commit

Permalink
fixed issue when saving rel with changed start or end node
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed Nov 12, 2024
1 parent a068d0a commit d7a78bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/page/Relationship.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ class Relationship extends React.Component<IRelationshipProps, IRelationshipStat
this.props.tabManager.setChanged(this.props.tabId, false, () => {
this.props.tabManager.close(this.props.tabId);
});
} else if (this.create) {
} else if (
this.create ||
this.state.rel.start !== this.state.start.identity ||
this.state.rel.end !== this.state.end.identity
) {
const rel = response.records[0].get('r');
this.props.tabManager.setChanged(this.props.tabId, false, () => {
this.props.tabManager.add(
Expand Down

0 comments on commit d7a78bc

Please sign in to comment.