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

wait for the attachments to be loaded before displaying the edit component

ulferts5a8703244866
diff --git a/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts b/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts
index e285a4dfd5e..1da78f24618 100644
--- a/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts
+++ b/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts
@@ -63,10 +63,11 @@ export class WidgetCustomTextComponent extends AbstractWidgetComponent implement
return;
}
- // load the attachments so that they are displayed in the list;
- this.resource.grid.updateAttachments();
-
- this.handler.activate();
+ // Load the attachments so that they are displayed in the list.
+ // Once that is done, we can show the edit form.
+ this.resource.grid.updateAttachments().then(() => {
+ this.handler.activate();
+ });
}
public get placeholderText() {