fix: undefined link if no value for url data field in grid
This commit is contained in:
parent
8a9a0a643b
commit
6b063cab3c
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ frappe.form.formatters = {
|
|||
},
|
||||
Data: function (value, df) {
|
||||
if (df && df.options == "URL") {
|
||||
if (!value) return;
|
||||
return `<a href="${value}" title="Open Link" target="_blank">${value}</a>`;
|
||||
}
|
||||
value = value == null ? "" : value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue