Skip to content

Commit

Permalink
fix: can not redo after undo add path command
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Feb 19, 2024
1 parent 553cdb9 commit 3eb6ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/path_editor/path_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class PathEditor {
constructor(private editor: Editor) {}

private onSelectedChange = (items: Graph[]) => {
if (items.length === 0 && items[0] === this.path) {
if (items.length === 0 || items[0] === this.path) {
return;
}
// end path edit
Expand Down

0 comments on commit 3eb6ba1

Please sign in to comment.