fix: remove accidental pasted code in move tool
ironic.
This commit is contained in:
parent
a7f39aa430
commit
634b6c24cb
1 changed files with 1 additions and 10 deletions
|
|
@ -125,16 +125,7 @@ function Canvas() {
|
|||
switch (tool) {
|
||||
case "move": {
|
||||
const mouseMovement = mouseMovementRef.current;
|
||||
if (!mouseMovement) return; // Get all blocks within selection
|
||||
const selectorBlocks = selectionCoords
|
||||
.map((coord) => {
|
||||
const [x, y] = coord;
|
||||
return blocks.find((block) => block.x === x && block.y === y);
|
||||
})
|
||||
.filter((block) => block !== undefined);
|
||||
|
||||
// Write to clipboard
|
||||
navigator.clipboard.writeText(JSON.stringify(selectorBlocks));
|
||||
if (!mouseMovement) return;
|
||||
|
||||
// If there is no selection currently being moved...
|
||||
if (selectionLayerBlocks.length == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue