Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[32729] Unsubscribe when cancelling creation

Oliver Günther6fecd90d3afe
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
index b94ef6b8752..f10dce75513 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
@@ -51,6 +51,7 @@ export class BcfNewWpAttributeGroupComponent extends BcfWpAttributeGroupComponen
this.wpCreate
.onNewWorkPackage()
.pipe(
+ this.untilDestroyed(),
take(1)
)
.subscribe(async (wp:WorkPackageResource) => {