Skip to content

Commit

Permalink
fix!: Accept flat arguments for server_action
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Feb 6, 2024
1 parent d616341 commit eb1b1b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frappe/public/js/frappe/ui/messages.js
Expand Up @@ -201,9 +201,7 @@ frappe.msgprint = function (msg, title, is_minimizable) {
data.primary_action.action = () => {
frappe.call({
method: data.primary_action.server_action,
args: {
args: data.primary_action.args,
},
args: data.primary_action.args,
callback() {
if (data.primary_action.hide_on_success) {
frappe.hide_msgprint();
Expand Down

0 comments on commit eb1b1b4

Please sign in to comment.