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

Check for presence of form link

Oliver Günther9d1e54a8ae29
diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
index 14cddfada4c..daaaf48f48d 100644
--- a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
@@ -362,7 +362,8 @@ export class WorkPackagesListService {
.then((loaded) => this.conditionallyLoadForm(loaded));
}
- if (!currentForm || query.$links.update.href !== currentForm.href) {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
+ if (!currentForm || !query.$links.update || query.$links.update.href !== currentForm.href) {
return this.loadForm(query);
}