fix(nc-gui): isgeometry defined and linting issues

This commit is contained in:
reenphygeorge
2023-09-15 22:05:12 +05:30
parent 99bd7190d4
commit e8a5f63696
7 changed files with 13 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { UITypes, type ColumnType } from 'nocodb-sdk'
import { type ColumnType } from 'nocodb-sdk'
import type { PropType } from '@vue/runtime-core'
import {
ColumnInj,
@@ -17,6 +17,7 @@ import {
isEmail,
isFloat,
isGeoData,
isGeometry,
isInt,
isJSON,
isPercent,
@@ -79,10 +80,10 @@ const renderIcon = (column: ColumnType, abstractType: any) => {
return iconMap.duration
} else if (isPercent(column)) {
return iconMap.percent
} else if (isGeometry(column)) {
return iconMap.calculator
} else if (isInt(column, abstractType) || isFloat(column, abstractType)) {
return iconMap.number
} else if(column.uidt === UITypes.Geometry) {
return iconMap.calculator
} else if (isString(column, abstractType)) {
return iconMap.text
} else {