feature/projects-all-the-way-down #3323

Merged
konrad merged 123 commits from feature/projects-all-the-way-down into main 2023-05-30 10:09:40 +00:00
Showing only changes of commit 175e31ca62 - Show all commits

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')})
}