Skip to content

Commit

Permalink
fix: workspace draft move to project (#5834)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Oct 15, 2024
1 parent 645a261 commit ff090ec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web/core/components/issues/issue-modal/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,14 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
type="button"
size="sm"
loading={isSubmitting}
onClick={() =>
data?.id && data && moveIssue(workspaceSlug.toString(), data?.id, data as TWorkspaceDraftIssue)
}
onClick={() => {
if (data?.id && data) {
moveIssue(workspaceSlug.toString(), data?.id, {
...data,
...getValues(),
} as TWorkspaceDraftIssue);
}
}}
>
Add to project
</Button>
Expand Down

0 comments on commit ff090ec

Please sign in to comment.