mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-03 06:17:35 +01:00
fix (edge case): forgotten edge case when page change
This commit is contained in:
parent
8d6ee6b940
commit
bbdcd995da
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue