always go to defaultLocation in routechange after a need is successfully created (def. is feed for now)
@@ -48,17 +48,8 @@ export function needCreate(draft, nodeUri) {
if (currentState === 'landingpage') {
return dispatch(actionCreators.router__stateGoAbs('feed'))
} else if (currentState === 'createNeed') {
- /*
- * go to view that was open before the create-view was opened, but
- * don't revert any new privateID or remove the create-gui from the
- * history stack.
- */
- if(prevState) {
- return dispatch(actionCreators.router__stateGoAbs(prevState, prevParams))
- } else {
return dispatch(actionCreators.router__stateGoDefault())
}
- }
})
.then(() => {
const { message, eventUri, needUri } = buildCreateMessage(draft, nodeUri);
