Skip to content

Commit

Permalink
Merge pull request #110 from stefanak-michal/107-rel-fix
Browse files Browse the repository at this point in the history
fixed issue when saving rel with changed start or end node
  • Loading branch information
stefanak-michal authored Nov 12, 2024
2 parents a068d0a + 6361452 commit 1240b74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: setup node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
node-version: '22'
cache: 'npm'

- name: install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stefanak-michal/cyphergui",
"version": "1.1.1",
"version": "1.1.3",
"private": false,
"homepage": ".",
"license": "Apache-2.0",
Expand Down
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 1240b74

Please sign in to comment.