mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix: Also filter out undefined entries from the file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
fd06f0c72d
commit
782e0cfaa4
1 changed files with 2 additions and 2 deletions
|
|
@ -307,10 +307,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
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue