.get() does not work in JavaScript.
This commit is contained in:
parent
b1c63dbe95
commit
90c62d0c99
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ frappe.request.call = function(opts) {
|
|||
headers: Object.assign({
|
||||
"X-Frappe-CSRF-Token": frappe.csrf_token,
|
||||
"Accept": "application/json",
|
||||
"X-Frappe-CMD": opts.get('args', {}).get('cmd', '')
|
||||
"X-Frappe-CMD": (opts.args && opts.args.cmd || '') || ''
|
||||
}, opts.headers),
|
||||
cache: false
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue