Browse Source

fix: extract column list if missing

pull/7304/head
Pranav C 11 months ago
parent
commit
2abb89a11e
  1. 5
      packages/nocodb/src/db/BaseModelSqlv2.ts

5
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -101,10 +101,7 @@ function checkColumnRequired(
return !fields || fields.includes(column.title); return !fields || fields.includes(column.title);
} }
export async function getColumnName( export async function getColumnName(column: Column<any>, columns?: Column[]) {
column: Column<any>,
columns?: Column[] = [],
) {
columns = columns || (await Column.list({ fk_model_id: column.fk_model_id })); columns = columns || (await Column.list({ fk_model_id: column.fk_model_id }));
switch (column.uidt) { switch (column.uidt) {
case UITypes.CreatedTime: { case UITypes.CreatedTime: {

Loading…
Cancel
Save