Skip to content

Commit

Permalink
Merge pull request #42006 from nextcloud/bugfix/41448
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl authored Dec 4, 2023
2 parents 1fd6273 + ca684c9 commit ca60df9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,16 @@ export default defineComponent({
},
dirContents(): Node[] {
const showHidden = this.userConfigStore?.userConfig.show_hidden
return (this.currentFolder?._children || [])
.map(this.getNode)
.filter(file => file)
.filter(file => file?.attributes?.hidden !== true)
.filter(file => {
if (!showHidden) {
return file?.attributes?.hidden !== true && !file?.basename.startsWith('.')
}
return true
})
},
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit ca60df9

Please sign in to comment.