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", 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(