Fix attachment row rendering bug with web attachment
This commit is contained in:
parent
607f9814a0
commit
3603254d35
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ import { getCSSItemTypeIcon } from 'components/icons';
|
|||
|
||||
this._attachmentButton.querySelector(".icon").replaceWith(getCSSItemTypeIcon(this._attachment.getItemTypeIconName()));
|
||||
this._attachmentButton.querySelector(".label").textContent = this._attachment.getField('title');
|
||||
let annotationCount = this.attachment.getAnnotations().length;
|
||||
let annotationCount = this.attachment.isWebAttachment() ? 0 : this.attachment.getAnnotations().length;
|
||||
this._annotationButton.hidden = annotationCount === 0;
|
||||
this._annotationButton.querySelector(".label").textContent = annotationCount;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue