Skip to content

Commit

Permalink
Update frappe/public/js/frappe/request.js
Browse files Browse the repository at this point in the history
Co-Authored-By: sachinhub <sachin.mane@gmail.com>
  • Loading branch information
surajshetty3416 and sachinhub committed Apr 16, 2019
1 parent af69d99 commit 0ea9a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ frappe.request.call = function(opts) {
headers: Object.assign({
"X-Frappe-CSRF-Token": frappe.csrf_token,
"Accept": "application/json",
"X-Frappe-CMD": (opts.args && opts.args.cmd || '') || ''
"X-Frappe-CMD": opts.get('args', {}).get('cmd', '')
}, opts.headers),
cache: false
};
Expand Down

0 comments on commit 0ea9a01

Please sign in to comment.