Skip to content

Commit

Permalink
fix: filter leave types and render leave application dashboard w/o fr…
Browse files Browse the repository at this point in the history
…om date (frappe#32001)
  • Loading branch information
ruchamahabal authored Aug 29, 2022
1 parent 074d484 commit 7686c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/hr/doctype/leave_application/leave_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ frappe.ui.form.on("Leave Application", {
make_dashboard: function(frm) {
var leave_details;
let lwps;
if (frm.doc.employee && frm.doc.from_date) {
if (frm.doc.employee) {
frappe.call({
method: "erpnext.hr.doctype.leave_application.leave_application.get_leave_details",
async: false,
Expand Down

0 comments on commit 7686c9e

Please sign in to comment.