mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 20:46:50 +00:00
feat: copy & paste user field
This commit is contained in:
@@ -195,6 +195,24 @@ export default function convertCellData(
|
||||
|
||||
return validVals.join(',')
|
||||
}
|
||||
case UITypes.User: {
|
||||
let parsedVal
|
||||
try {
|
||||
try {
|
||||
parsedVal = typeof value === 'string' ? JSON.parse(value) : value
|
||||
} catch {
|
||||
parsedVal = null
|
||||
}
|
||||
} catch (e) {
|
||||
if (isMultiple) {
|
||||
return null
|
||||
} else {
|
||||
throw new Error('Invalid user data')
|
||||
}
|
||||
}
|
||||
|
||||
return parsedVal || value
|
||||
}
|
||||
case UITypes.LinkToAnotherRecord:
|
||||
case UITypes.Lookup:
|
||||
case UITypes.Rollup:
|
||||
|
||||
Reference in New Issue
Block a user