feat: copy & paste user field

This commit is contained in:
mertmit
2023-12-11 15:58:33 +00:00
parent 83c6fddd2d
commit 1e694f1d02
4 changed files with 41 additions and 1 deletions

View File

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