Skip to content

Commit 6563c18

Browse files
committed
fix(common): return undefined if string type value is undefined
1 parent a071a73 commit 6563c18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/common/pipes/validation.pipe.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ export class ValidationPipe implements PipeTransform<any> {
207207
return +value;
208208
}
209209
if (metatype === String) {
210+
if (isUndefined(value)) {
211+
return undefined;
212+
}
210213
return String(value);
211214
}
212215
return value;

0 commit comments

Comments
 (0)