Skip to content

Commit

Permalink
add return undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
casparneumann-cap committed Nov 3, 2023
1 parent 7918dfc commit 6c6f862
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c6f862

Please sign in to comment.