From 79cee02271f45ebfac26f23bb91101372b8e0772 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Thu, 8 Dec 2022 09:04:24 -0400 Subject: [PATCH] fix file object on edit (#1818) --- src/components/Asset/Edit/EditMetadata.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Asset/Edit/EditMetadata.tsx b/src/components/Asset/Edit/EditMetadata.tsx index 0e71e429e..d7de68248 100644 --- a/src/components/Asset/Edit/EditMetadata.tsx +++ b/src/components/Asset/Edit/EditMetadata.tsx @@ -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' } ]