mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
set default value for contentLenght if not received from provider (#372)
This commit is contained in:
parent
53d984a3b6
commit
3e2ad9674c
@ -28,7 +28,7 @@ export async function fileinfo(
|
|||||||
const { contentLength, contentType } = response.data[0]
|
const { contentLength, contentType } = response.data[0]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
contentLength,
|
contentLength: contentLength || '',
|
||||||
contentType: contentType || '', // need to do that cause lib-js File interface requires contentType
|
contentType: contentType || '', // need to do that cause lib-js File interface requires contentType
|
||||||
url
|
url
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user