handle geodata paste

This commit is contained in:
Fendy Heryanto
2025-02-24 08:56:09 +00:00
parent b2d6fa2980
commit 870e40d1c8

View File

@@ -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
}