mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 18:46:36 +00:00
fix(nc-gui): prevent paste on attachment cell if paste data is non object
This commit is contained in:
@@ -125,7 +125,11 @@ export default function convertCellData(
|
||||
if (value) {
|
||||
try {
|
||||
parsedVal = parseProp(value)
|
||||
parsedVal = Array.isArray(parsedVal) ? parsedVal : [parsedVal]
|
||||
parsedVal = Array.isArray(parsedVal)
|
||||
? parsedVal
|
||||
: typeof parsedVal === 'object' && Object.keys(parsedVal).length
|
||||
? [parsedVal]
|
||||
: []
|
||||
} catch (e) {
|
||||
if (isMultiple) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user