fixed post-publish forwarding issue
This commit is contained in:
parent
22c794a289
commit
10fdf6e6e2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue