fix(Workspace Sidebar Item): clear link to field if link type is set to URL

This commit is contained in:
Asmita Hase 2025-12-29 16:06:04 +05:30
parent c6dde2d495
commit f2e6392447
No known key found for this signature in database

View file

@ -15,4 +15,9 @@ frappe.ui.form.on("Workspace Sidebar", {
});
}
},
link_type: function (frm) {
if (frm.doc.link_type == "URL") {
frm.set_value("link_to", "");
}
},
});