mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
parent
993222a749
commit
1a21e16710
@ -18,6 +18,7 @@ const prepare = (methods, dispatch) => {
|
|||||||
|
|
||||||
methods.onCancel = (evt) => {
|
methods.onCancel = (evt) => {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
methods.clear();
|
||||||
hashHistory.push('/features');
|
hashHistory.push('/features');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ const prepare = (methods, dispatch) => {
|
|||||||
|
|
||||||
methods.onCancel = (evt) => {
|
methods.onCancel = (evt) => {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
methods.clear();
|
||||||
hashHistory.push('/features');
|
hashHistory.push('/features');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ const prepare = (methods, dispatch) => {
|
|||||||
|
|
||||||
methods.onCancel = (e) => {
|
methods.onCancel = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
methods.clear();
|
||||||
// somewhat quickfix / hacky to go back..
|
// somewhat quickfix / hacky to go back..
|
||||||
window.history.back();
|
window.history.back();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user