Skip to content

Commit 0400f03

Browse files
authored
project-fetcher-hoc.jsx -- i hate redux
1 parent 5c108bf commit 0400f03

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,8 @@ const ProjectFetcherHOC = function (WrappedComponent) {
115115
this.props.vm.stop();
116116

117117
// pm: clear url params when fetching if the project ID is 'default'
118-
console.log(loadingState);
119118
if (
120-
(loadingState === LoadingStates.LOADING_VM_NEW_DEFAULT || loadingState === LoadingStates.FETCHING_NEW_DEFAULT)
121-
&& (projectId == 0 || projectId === null)
119+
(loadingState === "FETCHING_NEW_DEFAULT") && (projectId == 0 || projectId === null)
122120
) {
123121
const path = window.location.pathname + window.location.hash;
124122
window.history.replaceState({}, document.title, path);

0 commit comments

Comments
 (0)