diff --git a/apps/server/src/modules/board/service/content-element.service.ts b/apps/server/src/modules/board/service/content-element.service.ts index b6e3fb08470..e8e0142e066 100644 --- a/apps/server/src/modules/board/service/content-element.service.ts +++ b/apps/server/src/modules/board/service/content-element.service.ts @@ -92,12 +92,12 @@ export class ContentElementService { async replaceElementWithPlaceholder(contextExternalToolId: EntityId) { const externalToolElements: ExternalToolElementNodeEntity[] = await this.findElementsById(contextExternalToolId); - externalToolElements.forEach((element) => { + externalToolElements.forEach(async (element) => { if (element.parentId) { const boardNode = this.boardDoRepo.findById(element.parentId); // TODO - this.create(element.ancestorIds, BoardNodeType.PLACEHOLDER); + await this.create(boardNode, BoardNodeType.PLACEHOLDER); const placeholder = new PlaceholderElementNodeEntity({ title, type, diff --git a/apps/server/src/shared/domain/domainobject/board/card.do.ts b/apps/server/src/shared/domain/domainobject/board/card.do.ts index 8635e2db8d1..a7a91aaaa8e 100644 --- a/apps/server/src/shared/domain/domainobject/board/card.do.ts +++ b/apps/server/src/shared/domain/domainobject/board/card.do.ts @@ -1,3 +1,4 @@ +import { PlaceholderElement } from '@shared/domain/domainobject'; import { DrawingElement } from '@shared/domain/domainobject/board/drawing-element.do'; import { BoardComposite, BoardCompositeProps } from './board-composite.do'; import { CollaborativeTextEditorElement } from './collaborative-text-editor-element.do'; @@ -33,6 +34,7 @@ export class Card extends BoardComposite { domainObject instanceof RichTextElement || domainObject instanceof SubmissionContainerElement || domainObject instanceof ExternalToolElement || + domainObject instanceof PlaceholderElement || domainObject instanceof CollaborativeTextEditorElement; return allowed; }