Skip to content

Commit 1548574

Browse files
pzduniaktmcw
authored andcommitted
Fix a crash in ts_doctrine.js (#1278)
1 parent b2c3175 commit 1548574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ts_doctrine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function propertyToField(property) {
3232
}
3333
return {
3434
type: 'FieldType',
35-
key: property.key.name || property.key.value,
35+
key: property.key ? property.key.name || property.key.value : '',
3636
value: type
3737
};
3838
}

0 commit comments

Comments
 (0)