Skip to content

Commit 52b9028

Browse files
committed
fix: Also filter out undefined entries from the file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 6a938e1 commit 52b9028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files/src/views/FilesList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ export default defineComponent({
286286
.map(this.getNode)
287287
.filter(file => {
288288
if (!showHidden) {
289-
return file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
289+
return file && file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
290290
}
291291
292-
return true
292+
return !!file
293293
})
294294
},
295295

0 commit comments

Comments
 (0)