Skip to content

Commit

Permalink
Fixed bug where selected objects were not found when updating selection
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Jul 4, 2024
1 parent 2287a75 commit 3039f20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Undo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ export class Undo {
const edge = eagle.logicalGraph().findEdgeById(id);
const object = node || edge;

// abort if no edge or node exists fot that id
if (node === null && edge === null){
continue;
}

eagle.editSelection(<Eagle.RightWindowMode>eagle.rightWindow().mode(), object, Eagle.selectedLocation());
}
}
Expand Down

0 comments on commit 3039f20

Please sign in to comment.