Skip to content

Commit

Permalink
fix: Also filter out undefined entries from the file list
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Dec 5, 2023
1 parent 6a938e1 commit 52b9028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ export default defineComponent({
.map(this.getNode)
.filter(file => {
if (!showHidden) {
return file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
return file && file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
}
return true
return !!file
})
},
Expand Down

0 comments on commit 52b9028

Please sign in to comment.