fix: review changes nocodb/nocodb/pull/7491

This commit is contained in:
Ramesh Mane
2024-01-30 05:03:29 +00:00
parent a2c53f7bed
commit 2f79e7089e
6 changed files with 42 additions and 47 deletions

View File

@@ -182,7 +182,13 @@ export default function convertCellData(
attachments.push(attachment)
}
return attachments.length ? (value ? JSON.stringify(attachments) : files ? attachments : null) : null
if (value && attachments.length) {
return JSON.stringify(attachments)
} else if (files && attachments.length) {
return attachments
} else {
return null
}
}
case UITypes.SingleSelect:
case UITypes.MultiSelect: {