summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/attachment/attachment.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/attachment/attachment.xml')
-rw-r--r--addons/mail/static/src/components/attachment/attachment.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/components/attachment/attachment.xml b/addons/mail/static/src/components/attachment/attachment.xml
index 96e96b407ee..938ff8942c1 100644
--- a/addons/mail/static/src/components/attachment/attachment.xml
+++ b/addons/mail/static/src/components/attachment/attachment.xml
@@ -6,7 +6,7 @@
t-att-class="{
'o-downloadable': props.isDownloadable,
'o-editable': props.isEditable,
- 'o-has-card-details': detailsMode === 'card',
+ 'o-has-card-details': attachment and detailsMode === 'card',
'o-temporary': attachment and attachment.isTemporary,
'o-viewable': attachment and attachment.isViewable,
}" t-att-title="attachment ? attachment.displayName : undefined" t-att-data-attachment-local-id="attachment ? attachment.localId : undefined"