Browse Source

fix(nc-gui): BT cell verify paste value

pull/7558/head
Ramesh Mane 10 months ago
parent
commit
b938c3f64f
  1. 11
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

11
packages/nc-gui/composables/useMultiSelect/convertCellData.ts

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

Loading…
Cancel
Save