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 e285a4dfd5..1da78f2461 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() {