mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
fix file adding on faulty url checker response
This commit is contained in:
parent
839140d906
commit
2f741d300e
@ -89,10 +89,10 @@ export default class Files extends PureComponent<FilesProps, FilesStates> {
|
|||||||
|
|
||||||
const { contentLength, contentType, found } = response.data.result
|
const { contentLength, contentType, found } = response.data.result
|
||||||
|
|
||||||
file.contentLength = contentLength
|
if (contentLength) file.contentLength = contentLength
|
||||||
file.contentType = contentType
|
if (contentType) file.contentType = contentType
|
||||||
file.compression = cleanupContentType(contentType)
|
if (contentType) file.compression = cleanupContentType(contentType)
|
||||||
file.found = found
|
if (found) file.found = found
|
||||||
|
|
||||||
return file
|
return file
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user