diff --git a/cypress/integration/control_link.js b/cypress/integration/control_link.js index 964e5306aa..7a7e94d2f5 100644 --- a/cypress/integration/control_link.js +++ b/cypress/integration/control_link.js @@ -111,7 +111,7 @@ context('Control Link', () => { if (!frappe.boot) { frappe.boot = { link_title_doctypes: ['ToDo'] - } + }; } else { frappe.boot.link_title_doctypes = ['ToDo']; } diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 3495a69cb5..dc75239ed5 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -1449,8 +1449,8 @@ Object.assign(frappe.utils, { return title; }); } catch (error) { - console.log('Error while fetching link title.'); - console.log(error); + console.log('Error while fetching link title.'); // eslint-disable-line + console.log(error); // eslint-disable-line return Promise.resolve(name); } }