fixes a bug that does not let the privateId be deleted from the params
@@ -32,7 +32,7 @@ export function needCreate(draft, nodeUri) {
const currentState = getIn(state, ['router', 'currentState', 'name']);
const prevState = getIn(state, ['router', 'prevState', 'name']);
- let prevParams = getIn(state, ['router', 'prevParams']);
+ const prevParams = getIn(state, ['router', 'prevParams']);
if(!state.getIn(['user', 'loggedIn']) && prevParams.privateId){
/*
@@ -40,7 +40,7 @@ export function needCreate(draft, nodeUri) {
* there be a previous privateId, we don't want to change
* back to that later.
*/
- prevParams = prevParams.remove("privateId")
+ delete prevParams.privateId;
}
return ensureLoggedIn(dispatch, getState)
