diff --git a/frontend/src/stores/projects.ts b/frontend/src/stores/projects.ts index e6b436e6a..7c9bbbe1c 100644 --- a/frontend/src/stores/projects.ts +++ b/frontend/src/stores/projects.ts @@ -106,6 +106,12 @@ export const useProjectStore = defineStore('project', () => { } function removeProjectById(project: IProject) { + + // Remove child projects from state as well + projectsArray.value + .filter(p => p.parentProjectId === project.id) + .forEach(p => removeProjectById(p)) + remove(project) delete projects.value[project.id] }