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
juliusknorr committed Dec 5, 2023
1 parent 63caf9f commit ef28de3
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 @@ -280,10 +280,10 @@ export default Vue.extend({
.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 ef28de3

Please sign in to comment.