Commit c9239a6a authored by Audrey Hamelers's avatar Audrey Hamelers
parent 7a472947
Pipeline #13406 failed with stages
in 32 seconds
......@@ -154,7 +154,7 @@ const MetaEdit = withTheme(
}
}}
close={close}
linkAndDelete={v => linkAndDelete(v)}
linkAndDelete={linkAndDelete}
manuscript={manuscript}
/>
)
......
......@@ -100,17 +100,18 @@ class MetaSec extends React.Component {
linkDelete === pmcid &&
manuscript.status !== 'xml-complete'
) {
const { data } = await linkDeleteManuscript({
variables: { id: manuscript.id },
})
const result = data.linkDeleteManuscript
;(() =>
this.setState({
linkDelete: null,
notif: {
type: result.success ? 'success' : 'error',
message: result.message,
},
this.setState({ linkDelete: null }, async () => {
const { data } = await linkDeleteManuscript({
variables: { id: manuscript.id },
})
const result = data.linkDeleteManuscript
this.setState({
notif: {
type: result.success ? 'success' : 'error',
message: result.message,
},
})
}))()
}
}
......
......@@ -373,8 +373,8 @@ class PubMedSearch extends React.Component {
<FlexP>
<Button
onClick={() => {
adminRemove(inPMC.pmcid)
this.selectResult(inPMC.result, inPMC.journal)
adminRemove(inPMC.pmcid)
}}
>
Remove submission
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment