Browse Source

fix: duplicate table issue

pull/7727/head
mertmit 10 months ago
parent
commit
b0b23500a2
  1. 10
      packages/nocodb/src/models/Column.ts
  2. 2
      packages/nocodb/src/models/View.ts

10
packages/nocodb/src/models/Column.ts

@ -483,13 +483,6 @@ export default class Column<T = any> implements ColumnType {
return this.model;
}
public static async clearList({ fk_model_id }) {
await NocoCache.deepDel(
`${CacheScope.COLUMN}:${fk_model_id}:list`,
CacheDelDirection.PARENT_TO_CHILD,
);
}
public static async list(
{
fk_model_id,
@ -1336,10 +1329,7 @@ export default class Column<T = any> implements ColumnType {
true,
);
// insert column options if any
// for (const column of columns) {
await Column.bulkInsertColOption(columns, ncMeta);
// }
return columns;
}

2
packages/nocodb/src/models/View.ts

@ -1386,7 +1386,7 @@ export default class View implements ViewType {
MetaTable.COLUMNS,
col.fk_column_id,
);
view_columns_meta.push(col_meta);
if (col_meta) view_columns_meta.push(col_meta);
}
const primary_value_column_meta = view_columns_meta.find((col) => col.pv);

Loading…
Cancel
Save