fix: recreate project instead of editing before
This commit is contained in:
parent
d414b65e7d
commit
175e31ca62
@ -232,8 +232,11 @@ export function useProject(projectId: MaybeRef<IProject['id']>) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
async function save() {
|
async function save() {
|
||||||
project.parentProjectId = parentProject.value.id
|
const updatedProject = await projectStore.updateProject({
|
||||||
await projectStore.updateProject(project)
|
...project,
|
||||||
|
parentProjectId: parentProject.value.id ?? project.parentProjectId,
|
||||||
|
})
|
||||||
|
Object.assign(project, updatedProject)
|
||||||
success({message: t('project.edit.success')})
|
success({message: t('project.edit.success')})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user