perf: dont reload doc when already saving (#21869)
This commit is contained in:
parent
d08ee0284d
commit
97eefdaa44
1 changed files with 2 additions and 2 deletions
|
|
@ -149,10 +149,10 @@ $.extend(frappe.model, {
|
|||
cur_frm.doc.doctype === doc.doctype &&
|
||||
cur_frm.doc.name === doc.name
|
||||
) {
|
||||
if (data.modified !== cur_frm.doc.modified) {
|
||||
if (data.modified !== cur_frm.doc.modified && !frappe.ui.form.is_saving) {
|
||||
if (!cur_frm.is_dirty()) {
|
||||
cur_frm.reload_doc();
|
||||
} else if (!frappe.ui.form.is_saving) {
|
||||
} else {
|
||||
doc.__needs_refresh = true;
|
||||
cur_frm.show_conflict_message();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue