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

Remove form loading in embedded table

Oliver Günther5838af7d5902
diff --git a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
index 17c200ec830..37b9593e0c4 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
@@ -109,7 +109,6 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo
}
protected initializeStates(query:QueryResource) {
- void this.loadForm(query);
super.initializeStates(query);
this.querySpace
@@ -127,29 +126,7 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo
});
}
- private loadForm(query:QueryResource):Promise<QueryFormResource|undefined> {
- if (!this.formPromise) {
- this.formPromise = firstValueFrom(
- this
- .apiv3Service
- .withOptionalProject(this.projectIdentifier)
- .queries
- .form
- .load(query),
- )
- .then(([form, _]) => {
- this.wpStatesInitialization.updateStatesFromForm(query, form);
- return form;
- })
- .catch(() => undefined);
- }
-
- return this.formPromise;
- }
-
public loadQuery(visible = true, firstPage = false):Promise<QueryResource> {
- // Ensure we are loading the form.
- this.formPromise = undefined;
if (this.loadedQuery) {
const query = this.loadedQuery;