fix (edge case): forgotten edge case when page change

This commit is contained in:
Mickael KERJEAN 2019-03-18 14:16:08 +11:00
parent 8d6ee6b940
commit bbdcd995da

View file

@ -88,7 +88,7 @@ export class FilesPage extends React.Component {
if(/\/$/.test(path) === false){ path = path + "/"; }
if(/^\//.test(path) === false){ path = "/"+ path; }
return path;
}(nextProps.match.params.path.replace(/%23/g, "#"));
}((nextProps.match.params.path || "").replace(/%23/g, "#"));
if(new_path !== this.state.path){
this.setState({path: new_path, loading: true});
this.onRefresh(new_path);