fix: prop value

This commit is contained in:
Shivam Mishra
2023-10-10 19:21:45 +05:30
parent 8db377d29b
commit d3dd20e4b9
2 changed files with 4 additions and 1 deletions
@@ -43,9 +43,12 @@ export default {
return extractTextFromMarkdown(this.content);
},
attachmentIcon() {
if (!this.attachments.length) return null;
return ATTACHMENT_ICONS[this.attachments[0]?.file_type];
},
attachmentLabel() {
if (!this.attachments.length) return null;
const firstFileName = this.attachments[0].data_url?.split('/').pop();
if (this.attachments.length > 1) {