fix: workspace draft move to project (#5834)
This commit is contained in:
parent
645a261493
commit
ff090ecf39
1 changed files with 8 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue