mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
simple fix, a lot of debugging :-( (#1993)
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
This commit is contained in:
parent
f39ddf97e3
commit
4ced71c5af
@ -50,16 +50,6 @@ export default function FormEditMetadata({
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// let's initiate files with empty url (we can't access the asset url) with type hidden (for UI frontend)
|
|
||||||
setTimeout(() => {
|
|
||||||
setFieldValue('files', [
|
|
||||||
{
|
|
||||||
url: '',
|
|
||||||
type: 'hidden'
|
|
||||||
}
|
|
||||||
])
|
|
||||||
}, 500)
|
|
||||||
|
|
||||||
const providerUrl = values?.services
|
const providerUrl = values?.services
|
||||||
? values?.services[0].providerUrl.url
|
? values?.services[0].providerUrl.url
|
||||||
: asset.services[0].serviceEndpoint
|
: asset.services[0].serviceEndpoint
|
||||||
|
@ -14,7 +14,7 @@ export function getInitialValues(
|
|||||||
description: metadata?.description,
|
description: metadata?.description,
|
||||||
price,
|
price,
|
||||||
links: [{ url: '', type: 'url' }],
|
links: [{ url: '', type: 'url' }],
|
||||||
files: [{ url: '', type: 'ipfs' }],
|
files: [{ url: '', type: 'hidden' }],
|
||||||
timeout: secondsToString(service?.timeout),
|
timeout: secondsToString(service?.timeout),
|
||||||
author: metadata?.author,
|
author: metadata?.author,
|
||||||
tags: metadata?.tags,
|
tags: metadata?.tags,
|
||||||
|
Loading…
Reference in New Issue
Block a user