We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc760f4 commit 98a3b0dCopy full SHA for 98a3b0d
src/views/Viewer.vue
@@ -731,8 +731,8 @@ export default defineComponent({
731
732
let filteredFiles
733
if (configModule.alwaysShowViewer) {
734
- // don't include directories, otherwise accept all mimes
735
- filteredFiles = fileList.filter(({ type }) => type !== 'directory')
+ // only include files with mime to exclude directories, otherwise accept all mimes
+ filteredFiles = fileList.filter(file => file?.mime)
736
} else {
737
// filter out the unwanted mimes
738
filteredFiles = fileList.filter(file => file.mime && mimes.indexOf(file.mime) !== -1)
0 commit comments