Disable default upload method when importing

This commit is contained in:
Serkan Reis 2023-08-21 12:40:54 +03:00
parent 96dda936ae
commit ae9aec3bd8
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ export const UploadDetails = ({
useEffect(() => {
if (importedUploadDetails) {
if (importedUploadDetails.uploadMethod === 'new') {
setUploadMethod('existing')
setUploadMethod('new')
setUploadService(importedUploadDetails.uploadService)
nftStorageApiKeyState.onChange(importedUploadDetails.nftStorageApiKey || '')
pinataApiKeyState.onChange(importedUploadDetails.pinataApiKey || '')

View File

@ -1322,7 +1322,7 @@ const CollectionCreationPage: NextPage = () => {
details.uploadDetails.baseTokenURI = details.baseTokenUri
details.uploadDetails.imageUrl = details.coverImageUrl
}
if (details.openEditionMinterDetails.openEditionMinterContractAddress) {
if (details.openEditionMinterDetails?.openEditionMinterContractAddress) {
details.openEditionMinterDetails.offChainMetadataUploadDetails.uploadMethod = 'existing'
details.openEditionMinterDetails.offChainMetadataUploadDetails.tokenURI =
details.openEditionMinterDetails.tokenUri