diff --git a/changelog/unreleased/enhancement-show-txt-icon-for-empty-txt-files b/changelog/unreleased/enhancement-show-txt-icon-for-empty-txt-files index c5c80f0ef8b..98ba5108f4d 100644 --- a/changelog/unreleased/enhancement-show-txt-icon-for-empty-txt-files +++ b/changelog/unreleased/enhancement-show-txt-icon-for-empty-txt-files @@ -2,3 +2,4 @@ Enhancement: Show text file icon for empty text files We've changed the thumbnail of almost empty text files to the regular text icon. +https://github.com/owncloud/web/pull/8057 \ No newline at end of file diff --git a/packages/design-system/src/components/OcResource/OcResource.vue b/packages/design-system/src/components/OcResource/OcResource.vue index 8f3437403da..b968601aa50 100644 --- a/packages/design-system/src/components/OcResource/OcResource.vue +++ b/packages/design-system/src/components/OcResource/OcResource.vue @@ -172,7 +172,7 @@ export default { hasThumbnail() { return ( this.isThumbnailDisplayed && - !isTxtFileAlmostEmpty() && + !this.isTxtFileAlmostEmpty && Object.prototype.hasOwnProperty.call(this.resource, 'thumbnail') ) },