Fix undefined decimal type serialization.
This commit is contained in:
parent
d96c39d079
commit
9cb2bf1e5c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@sharkitek/core",
|
"name": "@sharkitek/core",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"description": "Sharkitek core models library.",
|
"description": "Sharkitek core models library.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"sharkitek",
|
"sharkitek",
|
||||||
|
@ -12,7 +12,7 @@ export class DecimalType extends Type<string, number>
|
|||||||
|
|
||||||
serialize(value: number): string
|
serialize(value: number): string
|
||||||
{
|
{
|
||||||
return value.toString();
|
return value?.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user