Skip to main content
5 events
when toggle format what by license comment
Oct 23, 2018 at 22:12 vote accept Travis
Sep 26, 2018 at 20:21 comment added sfdcfox @Travis In that case, you would need to clone two levels deep, as I tried to imply. You need to clone the objects so you have separate references.
Sep 26, 2018 at 20:11 comment added Travis I tried using ` var returnValue = response.getReturnValue(); var returnValueClone = Object.assign({}, returnValue); cmp.set("v.wrapperObj",returnValue); cmp.set("v.originalWrapperObj",returnValueClone); ` but still have the same issue. The response back will be a wrapper class. ` public class responseWrapper { @AuraEnabled public User userObj {get;set;} @AuraEnabled public Contact candidate {get;set;} } `
Sep 26, 2018 at 19:11 history edited sfdcfox CC BY-SA 4.0
added 265 characters in body
Sep 26, 2018 at 19:05 history answered sfdcfox CC BY-SA 4.0