remove attempt at 'goback' after editing an entity
This commit is contained in:
@@ -119,16 +119,7 @@ define(
|
|||||||
if(this.props.onSuccess !== undefined) {
|
if(this.props.onSuccess !== undefined) {
|
||||||
this.props.onSuccess();
|
this.props.onSuccess();
|
||||||
} else {
|
} else {
|
||||||
var isChrome = (/Chrome/.test(navigator.userAgent))
|
this.context.router.push('/');
|
||||||
&& (/Google Inc/.test(navigator.vendor));
|
|
||||||
if(
|
|
||||||
(isChrome && history.length > 2)
|
|
||||||
|| (!isChrome && history.length > 1)
|
|
||||||
) {
|
|
||||||
this.context.router.goBack();
|
|
||||||
} else {
|
|
||||||
this.context.router.push('/');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.props.params.id !== undefined) {
|
if(this.props.params.id !== undefined) {
|
||||||
|
Reference in New Issue
Block a user