Skip to content

Commit

Permalink
fix: Avoid throwing on folder previews as there are none
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Aug 18, 2023
1 parent f5f3d68 commit 033cd6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files/src/components/FileEntry.vue
Expand Up @@ -395,6 +395,10 @@ export default Vue.extend({
return this.userConfig.crop_image_previews
},
previewUrl() {
if (this.source.type === 'folder') {
return null
}
try {
const previewUrl = this.source.attributes.previewUrl
|| generateUrl('/core/preview?fileId={fileid}', {
Expand Down

0 comments on commit 033cd6f

Please sign in to comment.