-
- Downloads
[editor] Fix element duplication
Was not correctly creating new instances of non-primitive values. Now uses "JSON.parse(JSON.stringify(element))" for deep copying the element first. Also refactor by moving the method to the UnitService, where all ID handling should take place.
Showing
- projects/common/models/section.ts 0 additions, 13 deletionsprojects/common/models/section.ts
- projects/editor/src/app/components/unit-view/page-view/properties-panel/element-properties.component.ts 1 addition, 1 deletion...age-view/properties-panel/element-properties.component.ts
- projects/editor/src/app/services/unit.service.ts 26 additions, 7 deletionsprojects/editor/src/app/services/unit.service.ts
Loading
Please register or sign in to comment