mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -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
6a938e1ae9
commit
52b902831c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue