We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc760f4 commit e570185Copy full SHA for e570185
src/views/Viewer.vue
@@ -732,7 +732,7 @@ export default defineComponent({
732
let filteredFiles
733
if (configModule.alwaysShowViewer) {
734
// don't include directories, otherwise accept all mimes
735
- filteredFiles = fileList.filter(({ type }) => type !== 'directory')
+ 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