Skip to content

Commit 538f54f

Browse files
committed
IONOS fix(Viewer): fix file filter for directories
Signed-off-by: Franziska Bath <[email protected]>
1 parent cc760f4 commit 538f54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Viewer.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export default defineComponent({
732732
let filteredFiles
733733
if (configModule.alwaysShowViewer) {
734734
// don't include directories, otherwise accept all mimes
735-
filteredFiles = fileList.filter(({ type }) => type !== 'directory')
735+
filteredFiles = fileList.filter(file => file.mime);
736736
} else {
737737
// filter out the unwanted mimes
738738
filteredFiles = fileList.filter(file => file.mime && mimes.indexOf(file.mime) !== -1)
@@ -976,7 +976,7 @@ export default defineComponent({
976976
return false
977977
}
978978

979-
979+
980980

981981
// Faster to check if at least one node doesn't match the requirements
982982
return !nodes.some(node => (

0 commit comments

Comments
 (0)