From d7a78bcb7ed2a146d0ac2b1109d797c61ef5a8b2 Mon Sep 17 00:00:00 2001 From: Michal Stefanak Date: Tue, 12 Nov 2024 07:58:56 +0100 Subject: [PATCH 1/2] fixed issue when saving rel with changed start or end node --- src/page/Relationship.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/page/Relationship.tsx b/src/page/Relationship.tsx index f3dbd2f..92edbe6 100644 --- a/src/page/Relationship.tsx +++ b/src/page/Relationship.tsx @@ -214,7 +214,11 @@ class Relationship extends React.Component { 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( From 63614522b24c8d7b6aef84e619b5098cf1e00402 Mon Sep 17 00:00:00 2001 From: Michal Stefanak Date: Tue, 12 Nov 2024 10:00:33 +0100 Subject: [PATCH 2/2] trying to fix failing workflow --- .github/workflows/auto-deploy.yml | 2 +- .github/workflows/playwright.yml | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml index 8915f31..1676529 100644 --- a/.github/workflows/auto-deploy.yml +++ b/.github/workflows/auto-deploy.yml @@ -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 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 0b11b9c..639a2c3 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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 diff --git a/package.json b/package.json index 9eaa31c..6287fa1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stefanak-michal/cyphergui", - "version": "1.1.1", + "version": "1.1.3", "private": false, "homepage": ".", "license": "Apache-2.0",