We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6563c18 commit 74c4376Copy full SHA for 74c4376
packages/common/pipes/validation.pipe.ts
@@ -206,10 +206,7 @@ export class ValidationPipe implements PipeTransform<any> {
206
if (metatype === Number) {
207
return +value;
208
}
209
- if (metatype === String) {
210
- if (isUndefined(value)) {
211
- return undefined;
212
- }
+ if (metatype === String && !isUndefined(value)) {
213
return String(value);
214
215
return value;
0 commit comments