Skip to content

Commit c0e95f6

Browse files
committed
MOBILE-2915 data: Trim url field
1 parent a36a54c commit c0e95f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addon/mod/data/fields/url/providers/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class AddonModDataFieldUrlHandler extends AddonModDataFieldTextHandler {
5454
{
5555
fieldid: field.id,
5656
subfield: '0',
57-
value: inputData[fieldName] || ''
57+
value: (inputData[fieldName] && inputData[fieldName].trim()) || ''
5858
}
5959
];
6060
}

0 commit comments

Comments
 (0)