Skip to content

Commit

Permalink
Resolved issue where automatic row/col selection is flawed
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronge-2020 committed May 14, 2024
1 parent 15fe207 commit ca2b110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/drawCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ function determineCoreRow(core, sortedCoresData) {
// Filter out rows in sortedCoresData that only have one core
sortedCoresData = sortedCoresData.filter((core) => {
const coresInRow = sortedCoresData.filter((c) => c.row === core.row);
return coresInRow.length > 1;
return coresInRow.length > 0;
});

let imageRotation = parseFloat(document.getElementById("originAngle").value);
Expand Down

0 comments on commit ca2b110

Please sign in to comment.