Skip to content

Commit

Permalink
Merge pull request #80 from opencaesar/fix/53-webview-crash-context-menu
Browse files Browse the repository at this point in the history
Fix/53-webview-crash-context-menu
  • Loading branch information
UTNAK authored May 15, 2024
2 parents af9cb54 + 5b046be commit 97fd2e7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_deploy_vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
build_vsix_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Build VSIX File
Expand All @@ -27,8 +27,8 @@ jobs:
needs: build_vsix_file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_controller_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
backend_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Run backend tests
Expand Down
3 changes: 2 additions & 1 deletion view/src/components/Diagram/Diagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ function Diagram({
/>
<Background gap={12} size={1} />
</ReactFlow>
{rightClick && (
{/* Check if rightClick and if layout.contextMenu exists */}
{rightClick && layout.contextMenu &&(
<ContextMenu
selectedElements={iriArray}
top={coordinates.y}
Expand Down
2 changes: 1 addition & 1 deletion view/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ function Table({
)}
</tbody>
</table>
{rightClick && (
{rightClick && layout.contextMenu && (
<ContextMenu
selectedElements={iriArray}
top={coordinates.y}
Expand Down
2 changes: 1 addition & 1 deletion view/src/components/Tree/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function Tree({
</ArboristTree>
)}
</FillFlexParent>
{rightClick && (
{rightClick && layout.contextMenu && (
<ContextMenu
selectedElements={iriArray}
top={coordinates.y}
Expand Down

0 comments on commit 97fd2e7

Please sign in to comment.