fix: address code review comments
- vite.config.ts: fix __dirname for ESM, add 1MB payload limit + JSON validation - MapViewer.tsx: remove broken window.isTransforming checks, fix callback order - EditorPage.tsx: derive undoCount from historyManager in handleTransformEnd - package.json: support Node 20 or 22 in engines
This commit is contained in:
@@ -252,8 +252,6 @@ export function EditorPage(): React.JSX.Element {
|
||||
newMapNodes[nodeIndex] = updatedNode;
|
||||
return { ...prev, mapNodes: newMapNodes };
|
||||
});
|
||||
setUndoCount((prev) => prev + 1);
|
||||
console.log("Node transformed:", nodeIndex);
|
||||
},
|
||||
[sceneData],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user