mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 17:47:19 +00:00
handle paste for UITypes JSON
This commit is contained in:
@@ -307,6 +307,14 @@ export default function convertCellData(
|
||||
throw new Error(`Unsupported conversion for ${to}`)
|
||||
}
|
||||
}
|
||||
case UITypes.JSON: {
|
||||
try {
|
||||
JSON.parse(value)
|
||||
return value
|
||||
} catch (ex) {
|
||||
throw new TypeError(`Invalid JSON value`)
|
||||
}
|
||||
}
|
||||
default:
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user