diff --git a/msp/msp/doctype/it_landscape/it_landscape.js b/msp/msp/doctype/it_landscape/it_landscape.js index 80b7d49..edfc078 100644 --- a/msp/msp/doctype/it_landscape/it_landscape.js +++ b/msp/msp/doctype/it_landscape/it_landscape.js @@ -4,10 +4,10 @@ frappe.ui.form.on('IT Landscape', { refresh: function(frm) { frm.add_custom_button('Copy SSH Keys', () => frm.trigger('copy_ssh_keys'), 'Actions'); - if (frm.doc.ticket_system_link != "") { + if (frm.doc.ticket_system_link) { frm.add_custom_button('Open Ticket System', () => frm.trigger('open_ticket_system'), 'Actions'); }; - if (frm.doc.monitoring_link != "") { + if (frm.doc.monitoring_link) { frm.add_custom_button('Open Monitoring', () => frm.trigger('open_monitoring'), 'Actions'); } },