Browse Source

fix(gui-v2): add missing project id & base id

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
4874f96ea7
  1. 3
      packages/nocodb/src/lib/models/View.ts

3
packages/nocodb/src/lib/models/View.ts

@ -554,6 +554,7 @@ export default class View implements ViewType {
): Promise<Array<GridViewColumn | any>> {
const view = await this.get(viewId);
const table = this.extractViewColumnsTableName(view);
console.log(table);
const existingCol = await ncMeta.metaGet2(null, null, table, {
fk_view_id: viewId,
@ -573,7 +574,7 @@ export default class View implements ViewType {
);
return { ...existingCol, ...colData };
} else {
return await ncMeta.metaInsert2(null, null, table, {
return await ncMeta.metaInsert2(view.project_id, view.base_id, table, {
fk_view_id: viewId,
fk_column_id: fkColId,
order: colData.order,

Loading…
Cancel
Save