Skip to content

Commit

Permalink
fix: convertion of null value
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopo-filiberto committed Apr 4, 2022
1 parent 2415ff9 commit 34d3ff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/entityPropertyConverters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export function getTypeFromJavaType(type: string): PropertyType {
}

export function convertValueToJSType(type: PropertyType, value: any): any {
if (value == null || value == undefined)
return null;

switch (type) {
case 'date':
return value ? new Date(value) : null;
Expand Down

0 comments on commit 34d3ff9

Please sign in to comment.