Skip to content

Commit

Permalink
fix: Setup fail if fail function exists
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 authored and mergify[bot] committed Mar 7, 2024
1 parent 69f4c89 commit 4d5e453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/desk.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ frappe.Application = class Application {
frappe.set_route("Form", newdoc.doctype, newdoc.name);
frappe.dom.unfreeze();
});
res && res.fail(frappe.dom.unfreeze);
res && res.fail?.(frappe.dom.unfreeze);
});
}
} catch (e) {
Expand Down

0 comments on commit 4d5e453

Please sign in to comment.