refactor(nc-gui): parse formula plain cell value code

This commit is contained in:
Ramesh Mane
2025-05-22 07:24:19 +00:00
parent 2ec4ff631d
commit b74a371cf9

View File

@@ -564,18 +564,20 @@ export const parsePlainCellValue = (
return getAttachmentValue(value)
}
if (isFormula(col) && col?.meta?.display_type) {
const childColumn = {
uidt: col?.meta?.display_type,
...col?.meta?.display_column_meta,
}
if (isFormula(col)) {
if (col?.meta?.display_type) {
const childColumn = {
uidt: col?.meta?.display_type,
...col?.meta?.display_column_meta,
}
return parsePlainCellValue(value, { ...params, col: childColumn })
} else if (isFormula(col)) {
let url = replaceUrlsWithLink(value, true)
return parsePlainCellValue(value, { ...params, col: childColumn })
} else {
let url = replaceUrlsWithLink(value, true)
if (url && ncIsString(url)) {
return url
if (url && ncIsString(url)) {
return url
}
}
}