mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: workspace draft move to project (#5834)
This commit is contained in:
committed by
GitHub
parent
645a261493
commit
ff090ecf39
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user