[minor] pass null instead of false if there are no unsaved changes (#3860)
This commit is contained in:
parent
44ee24aa75
commit
5cf03a4282
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue