File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/files/src/components Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ import { CancelablePromise } from 'cancelable-promise'
170170import { debounce } from ' debounce'
171171import { emit } from ' @nextcloud/event-bus'
172172import { extname } from ' path'
173- import { formatFileSize , Permission } from ' @nextcloud/files'
173+ import { formatFileSize , FileType , Permission } from ' @nextcloud/files'
174174import { generateUrl } from ' @nextcloud/router'
175175import { showError , showSuccess } from ' @nextcloud/dialogs'
176176import { translate } from ' @nextcloud/l10n'
@@ -395,6 +395,10 @@ export default Vue.extend({
395395 return this .userConfig .crop_image_previews
396396 },
397397 previewUrl() {
398+ if (this .source .type === FileType .Folder ) {
399+ return null
400+ }
401+
398402 try {
399403 const previewUrl = this .source .attributes .previewUrl
400404 || generateUrl (' /core/preview?fileId={fileid}' , {
You can’t perform that action at this time.
0 commit comments