Skip to content

Commit 365852f

Browse files
committed
Refactor: eliminated some build warnings
1 parent 750d9c3 commit 365852f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bun.lockb

9.59 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@dreamworld/addon-redux": "1.1.0",
8585
"autoprefixer": "10.4.14",
8686
"bun-types": "1.0.21",
87-
"esbuild": "0.19.12",
87+
"esbuild": "0.20.1",
8888
"eslint": "8.49.0",
8989
"eslint-plugin-mdx": "2.1.0",
9090
"eslint-plugin-react": "7.33.2",
@@ -95,7 +95,7 @@
9595
"prettier": "2.8.8",
9696
"storybook": "7.3.2",
9797
"storybook-addon-react-router-v6": "1.0.2",
98-
"tailwindcss": "3.3.2",
98+
"tailwindcss": "3.4.1",
9999
"tailwindcss-animate": "1.0.6",
100100
"vite": "4.3.9"
101101
},

src/components/workspace/crosshairs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const Crosshairs = ({ render }) => {
3131

3232
const workspace = document.getElementById(ids.workspace)?.getBoundingClientRect();
3333

34-
const x1 = x - workspace.left ?? 0;
35-
const y1 = y - workspace.top ?? 0;
34+
const x1 = x - workspace?.left || 0;
35+
const y1 = y - workspace?.top || 0;
3636

3737
if (x1 < 0 || y1 < 0) return null;
3838

0 commit comments

Comments
 (0)