fix: remove HOME_PATH (#43034)
It was only used as a default for hardGoTo, but that function is only called once and does not need the default
This commit is contained in:
committed by
GitHub
parent
946f6847a7
commit
49b4e1f2b3
@@ -1,4 +1,3 @@
|
||||
/* global HOME_PATH */
|
||||
import { ofType } from 'redux-observable';
|
||||
import { tap, ignoreElements } from 'rxjs/operators';
|
||||
|
||||
@@ -7,7 +6,7 @@ import { types } from './';
|
||||
export default function hardGoToEpic(action$, _, { location }) {
|
||||
return action$.pipe(
|
||||
ofType(types.hardGoTo),
|
||||
tap(({ payload = HOME_PATH }) => {
|
||||
tap(({ payload }) => {
|
||||
location.href = payload;
|
||||
}),
|
||||
ignoreElements()
|
||||
|
Reference in New Issue
Block a user