fix (regression): toggle hidden files

This commit is contained in:
Mickael KERJEAN
2019-03-08 00:47:28 +11:00
parent b3408a75dd
commit 7f8c47c186

View File

@ -117,7 +117,7 @@ export class FilesPage extends React.Component {
let files = new Array(res.results.length);
for(let i=0,l=res.results.length; i<l; i++){
let path = this.state.path+res.results[i].name;
if(this.state.show_hidden === false && path[0] === "."){
if(this.state.show_hidden === false && res.results[i].name[0] === "."){
continue;
}
files[i] = res.results[i];