From 838ed777977b43334e5b0de10bf73a29b669cd9d Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 24 Feb 2020 17:36:15 +0530 Subject: [PATCH] fix: Blank chart preview --- .../chart_of_accounts_importer.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.js b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.js index 92358c9af27..189b2f9210f 100644 --- a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.js +++ b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.js @@ -2,12 +2,6 @@ frappe.ui.form.on('Chart of Accounts Importer', { onload: function (frm) { frm.set_value("company", ""); frm.set_value("import_file", ""); - - frappe.db.get_value('File', {'attached_to_doctype': 'Chart of Accounts Importer'}, 'file_url', (r) => { - if (r) { - frm.set_value('import_file', r.file_url); - } - }); }, refresh: function (frm) { // disable default save