diff --git a/src/app/components/pab-table/pab-table.component.ts b/src/app/components/pab-table/pab-table.component.ts index c07ae0282235d8730762eb9922e4de7c2bb9b377..f06c1b536c27ea4cd2c0d434cd3d416723c16f1a 100644 --- a/src/app/components/pab-table/pab-table.component.ts +++ b/src/app/components/pab-table/pab-table.component.ts @@ -969,7 +969,7 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni for (let i = 0; i < this.childrenToAdd; i++) { for (const si of this.selectedItems) { const newChild = Session.getInstance().createNub( - si.properties.clone(), + si, si.parent ); // copy parameter values @@ -982,7 +982,7 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni if (si instanceof ParallelStructure) { for (const c of si.getChildren()) { const newGrandChild = Session.getInstance().createNub( - c.properties.clone(), + c, newChild ); // copy children parameters values