1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix file object on edit (#1818)

This commit is contained in:
EnzoVezzaro 2022-12-08 09:04:24 -04:00 committed by GitHub
parent 80c0748dba
commit 79cee02271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,11 @@ export default function Edit({
{
type: values.files[0].type,
index: 0,
url: values.files[0].url,
[values.files[0].type === 'ipfs'
? 'hash'
: values.files[0].type === 'arweave'
? 'transactionId'
: 'url']: values.files[0].url,
method: 'GET'
}
]