fix(commons): fix sanitize not return value.
This commit is contained in:
parent
8e3dea7099
commit
bd045c6abe
@ -16,6 +16,12 @@ export class SanitizePipe implements PipeTransform {
|
||||
return value;
|
||||
}
|
||||
value = Object.assign(new constructorFunction(), value);
|
||||
try {
|
||||
sanitize(value);
|
||||
return value;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user