Browse Source

fix: hide all for views types other than grid

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5060/head
mertmit 2 years ago
parent
commit
15bc281ecb
  1. 2
      packages/nocodb/src/lib/models/View.ts

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

@ -1091,6 +1091,7 @@ export default class View implements ViewType {
const table = this.extractViewColumnsTableName(view);
const scope = this.extractViewColumnsTableNameScope(view);
if (view.type === ViewTypes.GRID) {
const primary_value_column = await ncMeta.metaGet2(null, null, MetaTable.COLUMNS, {
fk_model_id: view.fk_model_id,
pv: true,
@ -1100,6 +1101,7 @@ export default class View implements ViewType {
if (primary_value_column) {
ignoreColdIds.push(primary_value_column.id)
}
}
// get existing cache
const dataList = await NocoCache.getList(scope, [viewId]);

Loading…
Cancel
Save