Skip to content

Commit

Permalink
πŸš‘ Fix reading metadata undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Nov 17, 2023
1 parent a37f5a3 commit bc145da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/IscnUploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,9 @@ 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)
metadata.thumbnailUrl = arweaveId
if (metadata && metadata.thumbnailUrl) {
metadata.thumbnailUrl = arweaveId
}
}
this.$emit('arweaveUploaded', { arweaveId })
this.isOpenSignDialog = false
Expand Down

0 comments on commit bc145da

Please sign in to comment.