mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
fix (edge case): forgotten edge case when page change
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user