simple fix, a lot of debugging :-( (#1993)

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
This commit is contained in:
Enzo Vezzaro 2023-11-15 06:16:53 -04:00 committed by GitHub
parent f39ddf97e3
commit 4ced71c5af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -50,16 +50,6 @@ export default function FormEditMetadata({
}
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
? values?.services[0].providerUrl.url
: asset.services[0].serviceEndpoint

View File

@ -14,7 +14,7 @@ export function getInitialValues(
description: metadata?.description,
price,
links: [{ url: '', type: 'url' }],
files: [{ url: '', type: 'ipfs' }],
files: [{ url: '', type: 'hidden' }],
timeout: secondsToString(service?.timeout),
author: metadata?.author,
tags: metadata?.tags,