Skip to content

Commit

Permalink
Fix a crash in ts_doctrine.js (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzduniak authored and tmcw committed Sep 9, 2019
1 parent b2c3175 commit 1548574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts_doctrine.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function propertyToField(property) {
}
return {
type: 'FieldType',
key: property.key.name || property.key.value,
key: property.key ? property.key.name || property.key.value : '',
value: type
};
}
Expand Down

0 comments on commit 1548574

Please sign in to comment.