Disable default upload method when importing
This commit is contained in:
parent
96dda936ae
commit
ae9aec3bd8
@ -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 || '')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user