diff --git a/js/components/ascribe_detail/edition_action_panel.js b/js/components/ascribe_detail/edition_action_panel.js index d82a6b8f..bd423e4c 100644 --- a/js/components/ascribe_detail/edition_action_panel.js +++ b/js/components/ascribe_detail/edition_action_panel.js @@ -1,7 +1,7 @@ 'use strict'; import React from 'react'; -import Router from 'react-router'; +import { History } from 'react-router'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; @@ -39,7 +39,7 @@ let EditionActionPanel = React.createClass({ handleSuccess: React.PropTypes.func }, - mixins: [Router.Navigation], + mixins: [History], getInitialState() { return PieceListStore.getState(); @@ -66,7 +66,7 @@ let EditionActionPanel = React.createClass({ let notification = new GlobalNotificationModel(response.notification, 'success'); GlobalNotificationActions.appendGlobalNotification(notification); - this.transitionTo('pieces'); + this.history.pushState('/collection'); }, refreshCollection() {