fix: recreate project instead of editing before
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-04-12 11:27:36 +02:00
parent 13734848cf
commit c576dfe0d5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 2 deletions

View File

@ -232,8 +232,11 @@ export function useProject(projectId: MaybeRef<IProject['id']>) {
)
async function save() {
project.parentProjectId = parentProject.value.id
await projectStore.updateProject(project)
const updatedProject = await projectStore.updateProject({
...project,
parentProjectId: parentProject.value.id ?? project.parentProjectId,
})
Object.assign(project, updatedProject)
success({message: t('project.edit.success')})
}