fix: Check logic
This commit is contained in:
parent
e8090889ce
commit
e586badf3b
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ frappe.ui.form.ControlAttach = frappe.ui.form.ControlData.extend({
|
|||
// Important: We have to be careful because normal filenames may also contain ","
|
||||
let file_url_parts = this.value.match(/^([^:]+),(.+):(.+)$/);
|
||||
let filename;
|
||||
if (!file_url_parts) {
|
||||
if (file_url_parts) {
|
||||
filename = file_url_parts[1];
|
||||
dataurl = file_url_parts[2] + ':' + file_url_parts[3];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue