Need to clone the object before removing $-prefixed variables. Otherwise we are modifying the same data as the views are using
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
//dealing with requests:
|
||||
'request': function(config) {
|
||||
if(config.method === "POST"){
|
||||
transform(config.data);
|
||||
var clone = angular.copy(config);
|
||||
transform(clone.data);
|
||||
return clone;
|
||||
}
|
||||
|
||||
return config;
|
||||
|
||||
Reference in New Issue
Block a user