mirror of
https://github.com/directus/directus.git
synced 2026-01-29 11:27:56 -05:00
Resolve Geometry type as JS object (#11945)
This commit is contained in:
@@ -10,6 +10,6 @@ export function getJSType(field: Field): string {
|
||||
if (['string', 'text', 'uuid', 'hash'].includes(field.type)) return 'string';
|
||||
if (['boolean'].includes(field.type)) return 'boolean';
|
||||
if (['time', 'timestamp', 'date', 'dateTime'].includes(field.type)) return 'string';
|
||||
if (['json', 'csv'].includes(field.type)) return 'object';
|
||||
if (['json', 'csv', 'geometry'].includes(field.type)) return 'object';
|
||||
return 'undefined';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user