We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce73204 commit 5c108bfCopy full SHA for 5c108bf
src/lib/project-fetcher-hoc.jsx
@@ -115,7 +115,11 @@ const ProjectFetcherHOC = function (WrappedComponent) {
115
this.props.vm.stop();
116
117
// pm: clear url params when fetching if the project ID is 'default'
118
- if (loadingState === LoadingStates.FETCHING_NEW_DEFAULT && (projectId == 0 || projectId === null)) {
+ console.log(loadingState);
119
+ if (
120
+ (loadingState === LoadingStates.LOADING_VM_NEW_DEFAULT || loadingState === LoadingStates.FETCHING_NEW_DEFAULT)
121
+ && (projectId == 0 || projectId === null)
122
+ ) {
123
const path = window.location.pathname + window.location.hash;
124
window.history.replaceState({}, document.title, path);
125
this.props.vm.setFramerate(30);
0 commit comments