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:
parent
80c0748dba
commit
79cee02271
@ -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'
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user