Skip to content

Commit

Permalink
Wrap duplicated submission in a data object to match Form.io spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonesy committed Jan 13, 2020
1 parent 87957af commit 3262d14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/modules/requests/components/request/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function RequestSidebar({
// };
const withdrawHandler = () => {
const c = confirm(
'Editing a submitted request automatically withdraws it. Do you still wish to proceed?',
'Editing a submitted request automatically withdraws it. Do you still wish to proceed?'
);

if (c) {
Expand All @@ -58,7 +58,7 @@ function RequestSidebar({
const mergeRequestStatusCode = get(
data,
'mergeRequestStatus.code',
invalidCode,
invalidCode
);
const validateEditButton = () => {
if (!isEditing && data.exportType === 'code') {
Expand Down Expand Up @@ -186,7 +186,7 @@ function RequestSidebar({
id="request-sidebar-duplicate-button"
iconBefore={<CopyIcon />}
isDisabled={isSaving}
onClick={() => history.push('/new', duplicateRequest(data))}
onClick={() => history.push('/new', duplicateRequest({ data }))}
>
Duplicate Request
</Button>
Expand Down

0 comments on commit 3262d14

Please sign in to comment.