From ef956e88a16d130c563132974b422e2b7e576c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Vidme?= Date: Fri, 4 Mar 2022 17:20:25 +0100 Subject: [PATCH] Resolve Geometry type as JS object (#11945) --- app/src/utils/get-js-type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/utils/get-js-type.ts b/app/src/utils/get-js-type.ts index 9064c27212..067c9f6e14 100644 --- a/app/src/utils/get-js-type.ts +++ b/app/src/utils/get-js-type.ts @@ -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'; }