diff --git a/apps/server/src/modules/learnroom/controller/rooms.controller.ts b/apps/server/src/modules/learnroom/controller/rooms.controller.ts index 72b019eec2a..dcfe252c14e 100644 --- a/apps/server/src/modules/learnroom/controller/rooms.controller.ts +++ b/apps/server/src/modules/learnroom/controller/rooms.controller.ts @@ -69,14 +69,12 @@ export class RoomsController { @Param() urlParams: RoomUrlParams ): Promise { const copyStatus = await this.courseCopyUc.copyCourse(currentUser.userId, urlParams.roomId); - const newElements = copyStatus.elements?.filter((element) => { const filterCopyBoard = element.type !== CopyElementType.LESSON_CONTENT_NEXBOARD; - return filterCopyBoard + return filterCopyBoard; }); - copyStatus.elements = newElements; - const dto = CopyMapper.mapToResponse(copyStatus); - + copyStatus.elements = newElements; + const dto = CopyMapper.mapToResponse(copyStatus); return dto; }