Skip to content

Commit

Permalink
Fix: path navigation fails when returned from preview page (cloudreve…
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed Nov 21, 2020
1 parent 4ce1fd2 commit 253bf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/FileManager/Navigator/Navigator.js
Expand Up @@ -193,7 +193,7 @@ class NavigatorComponent extends Component {
window.onpopstate = () => {
const url = new URL(fixUrlHash(window.location.href));
const c = url.searchParams.get("path");
if (c !== null && c !== this.props.path) {
if (c !== null) {
this.props.navigateToPath(c);
}
};
Expand Down

0 comments on commit 253bf0c

Please sign in to comment.