Browse Source

fix: fields corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
test/query-opt-imp
Pranav C 2 years ago
parent
commit
5161784793
  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

@ -1517,10 +1517,10 @@ class BaseModelSqlv2 {
const res = {};
let view: View;
let fields: string[] = [];
let fields: string[];
if (fieldsSet?.size) {
viewOrTableColumns = await this.model.getColumns();
viewOrTableColumns = _columns || (await this.model.getColumns());
} else {
view = await View.get(viewId);
const viewColumns = viewId && (await View.getColumns(viewId));

Loading…
Cancel
Save