diff --git a/frappe/public/js/frappe/form/footer/attachments.js b/frappe/public/js/frappe/form/footer/attachments.js index df37f2898d..1bfa1148c3 100644 --- a/frappe/public/js/frappe/form/footer/attachments.js +++ b/frappe/public/js/frappe/form/footer/attachments.js @@ -140,7 +140,7 @@ frappe.ui.form.Attachments = Class.extend({ } me.remove_fileid(fileid); me.frm.get_docinfo().communications.push(r.message); - me.frm.timeline.refresh(); + me.frm.timeline && me.frm.timeline.refresh(); if (callback) callback(); } });