Skip to content
Snippets Groups Projects
Commit 2e743910 authored by rhenck's avatar rhenck
Browse files

[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.
parent 7affe7f9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment