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

Compiling error fixed

Aleix Suau5ad909a605cc
diff --git a/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts b/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts
index 4da6f61ecb3..edbc9ea2f1b 100644
--- a/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts
+++ b/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts
@@ -12,7 +12,7 @@ export namespace DragAndDropHelpers {
previousIndex = typeof previousIndex === 'string' ? parseInt(previousIndex, 10) : previousIndex;
const children = Array.from(container.children);
- const currentIndex = Array.from(el.parentNode.children).indexOf(el);
+ const currentIndex = Array.from(el.parentNode!.children).indexOf(el);
const isDraggingDown = currentIndex > previousIndex;
const pointOfInsertion = isDraggingDown ? children[previousIndex] : children[previousIndex + 1];