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

have large number of subprojects loaded

ulferts27e501d928b9
diff --git a/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
index 346fa102e6e..36a2c2dc4d9 100644
--- a/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
@@ -10,6 +10,7 @@ import { ProjectResource } from 'core-app/features/hal/resources/project-resourc
import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';
import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';
import { TimezoneService } from 'core-app/core/datetime/timezone.service';
+import { MAGIC_PAGE_NUMBER } from 'core-app/core/apiv3/helpers/get-paginated-results';
@Component({
templateUrl: './subprojects.component.html',
@@ -65,6 +66,7 @@ export class WidgetSubprojectsComponent extends AbstractWidgetComponent implemen
return {
sortBy: [['name', 'asc']],
filters: [['parent_id', '=', [this.currentProject.id!]]],
+ pageSize: MAGIC_PAGE_NUMBER,
};
}
}