diff --git a/app/components/Publication/transferTitleModal.js b/app/components/Publication/transferTitleModal.js index 21d798f..2ee6969 100644 --- a/app/components/Publication/transferTitleModal.js +++ b/app/components/Publication/transferTitleModal.js @@ -119,11 +119,12 @@ export default class TransferTitleModal extends React.Component { toPublisher: this.state.prefixSelection, email: this.state.publisherSelection.email, ownerPrefix: this.props.ownerPrefix, - doi: this.props.pubDoi}).catch(e=>{ - this.close() + doi: this.props.pubDoi}).then(()=>{ + this.props.reduxDeletePublication(this.props.pubDoi)} + ).catch(e=>{ + this.props.close() return errorHandler(`Error transfering title ${e.toString()}`, e) }) - this.props.reduxDeletePublication(this.props.pubDoi) } this.props.reduxControlModal({ diff --git a/deployConfig.js b/deployConfig.js index bc386ac..a87abe8 100644 --- a/deployConfig.js +++ b/deployConfig.js @@ -25,7 +25,12 @@ var presets = { staging: { baseUrl: '/mmstaging/', - apiBaseUrl: 'https://apps.crossref.org/mdt-staging', + apiBaseUrl: 'https://apps-staging.crossref.org/mdt', + babelConfig: babelDev + }, + develop: { + baseUrl: '/mmstaging/', + apiBaseUrl: 'http://localhost:8080/mdt-staging', babelConfig: babelDev } }