fix: filter leave types and render leave application dashboard w/o from date (#32001)

This commit is contained in:
Rucha Mahabal
2022-08-29 12:26:05 +05:30
committed by GitHub
parent 074d484d3c
commit 7686c9e450

View File

@@ -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,