diff --git a/src/components/Asset/Edit/FormEditMetadata.tsx b/src/components/Asset/Edit/FormEditMetadata.tsx index 4009b12dc..97cc52b51 100644 --- a/src/components/Asset/Edit/FormEditMetadata.tsx +++ b/src/components/Asset/Edit/FormEditMetadata.tsx @@ -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 diff --git a/src/components/Asset/Edit/_constants.ts b/src/components/Asset/Edit/_constants.ts index 99809c943..3a8d7b20d 100644 --- a/src/components/Asset/Edit/_constants.ts +++ b/src/components/Asset/Edit/_constants.ts @@ -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,