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"
|
type="button"
|
||||||
size="sm"
|
size="sm"
|
||||||
loading={isSubmitting}
|
loading={isSubmitting}
|
||||||
onClick={() =>
|
onClick={() => {
|
||||||
data?.id && data && moveIssue(workspaceSlug.toString(), data?.id, data as TWorkspaceDraftIssue)
|
if (data?.id && data) {
|
||||||
}
|
moveIssue(workspaceSlug.toString(), data?.id, {
|
||||||
|
...data,
|
||||||
|
...getValues(),
|
||||||
|
} as TWorkspaceDraftIssue);
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Add to project
|
Add to project
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue