Skip to content

Commit 5c108bf

Browse files
authored
maybe i was right the first time
1 parent ce73204 commit 5c108bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ const ProjectFetcherHOC = function (WrappedComponent) {
115115
this.props.vm.stop();
116116

117117
// pm: clear url params when fetching if the project ID is 'default'
118-
if (loadingState === LoadingStates.FETCHING_NEW_DEFAULT && (projectId == 0 || projectId === null)) {
118+
console.log(loadingState);
119+
if (
120+
(loadingState === LoadingStates.LOADING_VM_NEW_DEFAULT || loadingState === LoadingStates.FETCHING_NEW_DEFAULT)
121+
&& (projectId == 0 || projectId === null)
122+
) {
119123
const path = window.location.pathname + window.location.hash;
120124
window.history.replaceState({}, document.title, path);
121125
this.props.vm.setFramerate(30);

0 commit comments

Comments
 (0)