diff --git a/apps/server/src/modules/h5p-editor/controller/dto/ajax/post.body.params.transform-pipe.ts b/apps/server/src/modules/h5p-editor/controller/dto/ajax/post.body.params.transform-pipe.ts index 5189e5afbae..f9cf3770821 100644 --- a/apps/server/src/modules/h5p-editor/controller/dto/ajax/post.body.params.transform-pipe.ts +++ b/apps/server/src/modules/h5p-editor/controller/dto/ajax/post.body.params.transform-pipe.ts @@ -25,6 +25,8 @@ export class AjaxPostBodyParamsTransformPipe implements PipeTransform { transformed = plainToClass(ContentBodyParams, value); } else if ('libraryParameters' in value) { transformed = plainToClass(LibraryParametersBodyParams, value); + } else { + return undefined; } const validationResult = await validate(transformed);