Skip to content

Commit 4b59407

Browse files
author
lucifer
committed
fix: eslint
1 parent a9f749d commit 4b59407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataStructureVis/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export default function DataStrutureVis() {
275275
}) => {
276276
const { x = 0, y = 0 } = pointer;
277277
console.log(pointer);
278-
if (x != 0 || y != 0) {
278+
if (x !== 0 || y !== 0) {
279279
// 将 data 中的坐标整体偏移(x,y)
280280
data = data.map((el) => ({ ...el, x: el.x + x, y: el.y + y }));
281281
}

0 commit comments

Comments
 (0)