mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 14:46:39 +00:00
fix(nc-gui): BT cell verify paste value
This commit is contained in:
@@ -246,6 +246,17 @@ export default function convertCellData(
|
||||
|
||||
return parsedVal || value
|
||||
}
|
||||
case UITypes.LinkToAnotherRecord: {
|
||||
const parsedVal = typeof value === 'string' ? JSON.parse(value) : value
|
||||
if (!(parsedVal && typeof parsedVal === 'object' && !Array.isArray(parsedVal) && Object.keys(parsedVal))) {
|
||||
throw new Error('Invalid LTAR data')
|
||||
}
|
||||
|
||||
if (isMultiple) {
|
||||
return undefined
|
||||
}
|
||||
return parsedVal
|
||||
}
|
||||
case UITypes.Lookup:
|
||||
case UITypes.Rollup:
|
||||
case UITypes.Formula:
|
||||
|
||||
Reference in New Issue
Block a user