Fix undefined decimal type serialization.
This commit is contained in:
parent
d96c39d079
commit
cd8de0e2bf
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@sharkitek/core",
|
||||
"version": "2.1.1",
|
||||
"version": "2.1.2",
|
||||
"description": "Sharkitek core models library.",
|
||||
"keywords": [
|
||||
"sharkitek",
|
||||
|
|
|
@ -12,7 +12,7 @@ export class DecimalType extends Type<string, number>
|
|||
|
||||
serialize(value: number): string
|
||||
{
|
||||
return value.toString();
|
||||
return value?.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue