Skip to content

Commit e570185

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Viewer.vue

+1-1
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)

0 commit comments

Comments
 (0)