Browse Source

fix(nocodb): column_name -> title

pull/4488/head
Wing-Kam Wong 2 years ago
parent
commit
76148e92e7
  1. 4
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

4
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -2748,8 +2748,8 @@ class BaseModelSqlv2 {
}
data = data.map((d) => {
attachmentColumns.forEach((col) => {
if (d[col.column_name] && typeof d[col.column_name] === 'string') {
d[col.column_name] = JSON.parse(d[col.column_name]);
if (d[col.title] && typeof d[col.title] === 'string') {
d[col.title] = JSON.parse(d[col.title]);
}
});
return d;

Loading…
Cancel
Save