Skip to content
Snippets Groups Projects
  • rhenck's avatar
    2e743910
    [editor] Fix element duplication · 2e743910
    rhenck authored
    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.
    2e743910
    History
    [editor] Fix element duplication
    rhenck authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.