[minor] pass null instead of false if there are no unsaved changes (#3860)

This commit is contained in:
Makarand Bauskar 2017-08-07 13:36:49 +05:30 committed by Rushabh Mehta
parent 44ee24aa75
commit 5cf03a4282

View file

@ -494,7 +494,7 @@ frappe.Application = Class.extend({
if(doc.__unsaved) { unsaved_docs.push(doc.name); }
}
}
return unsaved_docs.length ? true : false;
return unsaved_docs.length ? true : null;
};
},