mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 12:46:57 +00:00
handle geodata paste
This commit is contained in:
@@ -345,6 +345,15 @@ export default function convertCellData(
|
||||
throw new SilentTypeConversionError()
|
||||
}
|
||||
}
|
||||
case UITypes.GeoData: {
|
||||
const geoValue = value.split(',')
|
||||
if (geoValue.length === 2) {
|
||||
if (!isNaN(Number(geoValue[0])) && !isNaN(Number(geoValue[1]))) {
|
||||
return geoValue.join(';')
|
||||
}
|
||||
}
|
||||
throw new SilentTypeConversionError()
|
||||
}
|
||||
default:
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user