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

Fix one more eslint warning

Christophe Bliard21524962ca27
diff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
index 12663df7908..6020d800747 100644
--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
@@ -88,10 +88,13 @@ export class WorkPackagesFullViewComponent extends WorkPackageSingleViewBase imp
protected init() {
super.init();
- this.recentItemsService.add(this.workPackage.id!);
+ if (this.workPackage.id) {
+ this.recentItemsService.add(this.workPackage.id);
+
+ // Set Focused WP
+ this.wpTableFocus.updateFocus(this.workPackage.id);
+ }
- // Set Focused WP
- this.wpTableFocus.updateFocus(this.workPackage.id!);
this.setWorkPackageScopeProperties(this.workPackage);
}