Skip to content

Commit

Permalink
fix(JBU-62): uncaught exception on JB creation due to reorganized DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsl4 committed Aug 28, 2024
1 parent 9a45edc commit 9c2bc9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion userscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@wazespace/wme-junction-box-utils",
"fullDisplayName": "WME Junction Box Utils",
"displayName": "Junction Box Utils",
"version": "2.3.0-prerelease0",
"version": "2.3.1",
"description": "Formerly known as \"Roundabout JB\". An enhancement add-on for the WME with a wide variety of capabilities for controlling and managing Junction Boxes.",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Fiber } from 'react-reconciler';

function getDrawBigJunctionMenuItem(): Element {
const element = document
.getElementById('create-panel')
.getElementById('drawer')
.querySelector(
'div[class^=menu] wz-menu-item:has(i.w-icon.w-icon-intersection)',
'[class^=menu] wz-menu-item:has(i.w-icon.w-icon-intersection)',
);
if (!element) throw new Error('DrawBigJunction menu item is not found');
return element;
Expand Down

0 comments on commit 9c2bc9e

Please sign in to comment.