Skip to content

Commit 85fe7ec

Browse files
ZeroZ-labparambharat
authored andcommitted
fix: trim whitespace from URL input in file uploader component langgenius#16700 (langgenius#16722)
1 parent b004b99 commit 85fe7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/app/components/base/file-uploader/file-from-link-or-local/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const FileFromLinkOrLocal = ({
7474
value={url}
7575
onChange={(e) => {
7676
setShowError(false)
77-
setUrl(e.target.value)
77+
setUrl(e.target.value.trim())
7878
}}
7979
disabled={disabled}
8080
/>

0 commit comments

Comments
 (0)