Skip to content

Commit 0811a23

Browse files
authored
fix: trim whitespace from URL input in file uploader component #16700 (#16722)
1 parent 05c6d57 commit 0811a23

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

+1-1
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)