fixed post-publish forwarding issue

This commit is contained in:
bill bittner 2018-02-13 22:29:54 -08:00
parent 22c794a289
commit 10fdf6e6e2

View file

@ -71,8 +71,8 @@ class PublishForm extends React.Component {
const response = JSON.parse(xhr.response);
console.log('publish response:', response);
if ((xhr.status === 200) && response.success) {
this.props.onPublishStatusChange(publishStates.SUCCESS, response.data.url);
this.props.history.push(`/${response.data.claimId}/${response.data.name}`);
this.props.onPublishStatusChange(publishStates.SUCCESS, response.data.url);
} else {
this.props.onPublishStatusChange(publishStates.FAILED, response.message);
}