Skip to content

Commit ccd894f

Browse files
- FIX: Fixed issue where traits could be imported with invalid trait data types.
1 parent 9544c04 commit ccd894f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/plugins/util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ function toGridScoreDataType (type: string): TraitDataType {
106106
switch (type) {
107107
case 'numeric':
108108
return TraitDataType.float
109-
default:
109+
case 'date':
110+
case 'text':
111+
case 'categorical':
110112
return type as TraitDataType
113+
default:
114+
return TraitDataType.text
111115
}
112116
}
113117

0 commit comments

Comments
 (0)