remove attempt at 'goback' after editing an entity

This commit is contained in:
Jonathan Labreuille
2016-04-29 18:35:52 +02:00
parent 2d2e1298c4
commit 9be326b45d

View File

@@ -119,16 +119,7 @@ define(
if(this.props.onSuccess !== undefined) {
this.props.onSuccess();
} else {
var isChrome = (/Chrome/.test(navigator.userAgent))
&& (/Google Inc/.test(navigator.vendor));
if(
(isChrome && history.length > 2)
|| (!isChrome && history.length > 1)
) {
this.context.router.goBack();
} else {
this.context.router.push('/');
}
this.context.router.push('/');
}
if(this.props.params.id !== undefined) {