From bbdcd995da52cd7d022abb1285ccb634dd7e4e63 Mon Sep 17 00:00:00 2001 From: Mickael KERJEAN Date: Mon, 18 Mar 2019 14:16:08 +1100 Subject: [PATCH] fix (edge case): forgotten edge case when page change --- client/pages/filespage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pages/filespage.js b/client/pages/filespage.js index 41302c21..01da19ef 100644 --- a/client/pages/filespage.js +++ b/client/pages/filespage.js @@ -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);