Skip to content

Commit 98a3b0d

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

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
@@ -731,8 +731,8 @@ export default defineComponent({
731731

732732
let filteredFiles
733733
if (configModule.alwaysShowViewer) {
734-
// don't include directories, otherwise accept all mimes
735-
filteredFiles = fileList.filter(({ type }) => type !== 'directory')
734+
// only include files with mime to exclude directories, otherwise accept all mimes
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)