Skip to content

Commit

Permalink
Fix declaration of shapeJson variable
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Apr 11, 2024
1 parent c3019fc commit 054222a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/views/right_panel_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
rect = clipboard_data.CROP;
} else if ('SHAPES' in clipboard_data){
// Look for first Rectangle in SHAPES
shapeJson = clipboard_data.SHAPES;
var shapeJson = clipboard_data.SHAPES;
shapeJson.forEach(function(shape) {
if (!rect && shape.type === "Rectangle") {
rect = {x: shape.x, y: shape.y, width: shape.width, height: shape.height};
Expand Down

0 comments on commit 054222a

Please sign in to comment.