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