fix: stringify objects before sending

This commit is contained in:
Shivam Mishra 2020-06-16 21:46:22 +05:30
parent 68528ca23d
commit 3ec76fb7e0

View file

@ -112,6 +112,12 @@ $.extend(frappe, {
opts.args.cmd = opts.method;
}
$.each(opts.args, function(key, val) {
if(typeof val != "string" || val !== null) {
opts.args[key] = JSON.stringify(val);
}
});
if(!opts.no_spinner) {
//NProgress.start();
}