Skip to content

Commit

Permalink
simple fix, a lot of debugging :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoVezzaro committed Nov 6, 2023
1 parent 90b41c7 commit cf256ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions src/components/Asset/Edit/FormEditMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/Asset/Edit/_constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf256ed

Please sign in to comment.