You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn('[Vuex ORM Axios] The response data could not be saved to the store because it\'s not an object or an array. You might want to use `dataTransformer` option to handle non-array/object response before saving it to the store.');
console.warn('[Vuex ORM Axios] The response data could not be saved to the store because it\'s not an object or an array. You might want to use `dataTransformer` option to handle non-array/object response before saving it to the store.');
Copy file name to clipboardExpand all lines: dist/vuex-orm-axios.js
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -89,14 +89,17 @@
89
89
*/
90
90
Response.prototype.save=function(){
91
91
return__awaiter(this,void0,void0,function(){
92
-
var_a;
92
+
vardata,_a;
93
93
return__generator(this,function(_b){
94
94
switch(_b.label){
95
95
case0:
96
+
data=this.getDataFromResponse();
97
+
if(!this.validateData(data)){
98
+
console.warn('[Vuex ORM Axios] The response data could not be saved to the store because it\'s not an object or an array. You might want to use `dataTransformer` option to handle non-array/object response before saving it to the store.');
0 commit comments