Use string instead of URL with fetch

This commit is contained in:
Jackson Harper 2022-11-14 15:18:02 +08:00
parent 87b90fbeaa
commit 5c1e4e4667

View file

@ -722,8 +722,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
throw 'No upload URL available'
}
const uploadSignedUrl = new URL(request?.uploadSignedUrl)
const uploadResult = await fetch(uploadSignedUrl, {
const uploadResult = await fetch(request?.uploadSignedUrl, {
method: 'PUT',
body: file,
})