Skip to content

Commit

Permalink
πŸ› Fix thumbnailUrl undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Dec 22, 2023
1 parent 23d3bd1 commit ff2d7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/IscnUploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ export default class UploadForm extends Vue {
this.sentArweaveTransactionInfo.set(records.ipfsHash, { ...uploadedData, arweaveId });
if (tempRecord.fileName.includes('cover.jpeg')) {
const metadata = this.epubMetadataList.find((file: any) => file.ipfsHash === records.ipfsHash)
if (metadata && metadata.thumbnailUrl) {
if (metadata) {
metadata.thumbnailUrl = arweaveId
}
}
Expand Down

0 comments on commit ff2d7e9

Please sign in to comment.