fix: Dedupe boundElement ids when container duplicated with alt+drag (#5938)

* Dedupe boundElement ids when container duplicated with alt+drag and add spec

* set to null by default
This commit is contained in:
Aakansha Doshi
2022-12-01 20:44:33 +05:30
committed by GitHub
parent 66bbfda460
commit a86224c797
3 changed files with 41 additions and 1 deletions

View File

@ -111,7 +111,7 @@ export const bindTextToShapeAfterDuplication = (
const newContainer = sceneElementMap.get(newElementId);
if (newContainer) {
mutateElement(newContainer, {
boundElements: element.boundElements?.concat({
boundElements: (newContainer.boundElements || []).concat({
type: "text",
id: newTextElementId,
}),