We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc760f4 commit 538f54fCopy full SHA for 538f54f
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)
@@ -976,7 +976,7 @@ export default defineComponent({
976
return false
977
}
978
979
-
+
980
981
// Faster to check if at least one node doesn't match the requirements
982
return !nodes.some(node => (
0 commit comments