I am facing a situation where I have an object retrieved from my API and need to replicate it to another object while loading a modal.
The following method achieves the duplication:
this.servicesForm.services = this.team.services;
// New object // Object from API
However, the problem arises when I do not want the team.services object to be linked with or updated along with the servicesForm.services object.
What approach should I take in order to avoid this?