Skip to content

Commit

Permalink
[choreo] Use new path name when duplicating (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruingineer committed Sep 9, 2024
1 parent d9ddcc6 commit 9c49f1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/document/PathListStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ export const PathListStore = types
if (oldPath === undefined) {
return;
}
const newName = self.disambiguateName(oldPath.name);
const newuuid = self.addPath(newName, false);
const newuuid = self.addPath(oldPath.name, false);
const path = self.paths.get(newuuid);
path!.deserialize(oldPath.serialize);
const copyOfOldPath = { ...oldPath.serialize, name: path!.name };
path!.deserialize(copyOfOldPath);
}
}
};
Expand Down

0 comments on commit 9c49f1a

Please sign in to comment.