Browse Source

MapView: 'Mapped by' column values should always be delivered - new approach - WIP

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
ad93f05b5b
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 12
      packages/nocodb/src/lib/models/MapView.ts

12
packages/nocodb/src/lib/models/MapView.ts

@ -79,13 +79,13 @@ export default class MapView implements MapType {
// const FOOView = await View.get(o.fk_view_id); // const FOOView = await View.get(o.fk_view_id);
// TODO: check, whether potentially also the 'o' object can // TODO: check, whether potentially also the 'o' object can
// be used here instead of 'FOOView' (type casting to View) // be used here instead of 'FOOView' (type casting to View)
const FOO = (await viewRef.getColumns()).find((column) => { // const FOO = (await viewRef.getColumns()).find((column) => {
console.log('column.fk_column_id', column.fk_column_id); // console.log('column.fk_column_id', column.fk_column_id);
console.log('view.fk_geo_data_col_id', view.fk_geo_data_col_id); // console.log('view.fk_geo_data_col_id', view.fk_geo_data_col_id);
return column.fk_column_id === view.fk_geo_data_col_id; // return column.fk_column_id === view.fk_geo_data_col_id;
}); // });
FOO.show = true; // FOO.show = true;
// TODO: column (FOO) probably needs explicit save here // TODO: column (FOO) probably needs explicit save here
await ncMeta.metaInsert2(null, null, MetaTable.MAP_VIEW, insertObj, true); await ncMeta.metaInsert2(null, null, MetaTable.MAP_VIEW, insertObj, true);

Loading…
Cancel
Save