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 eslint error

bsatarnejada8b039885bab
diff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
index 0605a3730c1..8d5f9fc1aff 100644
--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
@@ -153,7 +153,7 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implem
this.ngZone.runOutsideAngular(() => {
setTimeout(() => {
if (this.deviceService.isMobile) {
- this.elementRef.nativeElement.scrollIntoView(true);
+ (this.elementRef.nativeElement as HTMLElement).scrollIntoView(true);
return;
}
const activityElement = document.querySelectorAll(`[data-qa-activity-number='${this.activityNo}']`)[0] as HTMLElement;