Browse Source

refactor: bring back lookups over hm/mm

pull/6738/head
mertmit 1 year ago
parent
commit
73ccc43dec
  1. 8
      packages/nc-gui/components/smartsheet/column/LookupOptions.vue

8
packages/nc-gui/components/smartsheet/column/LookupOptions.vue

@ -39,13 +39,7 @@ const refTables = computed(() => {
} }
const _refTables = meta.value.columns const _refTables = meta.value.columns
.filter( .filter((column) => isLinksOrLTAR(column) && !column.system && column.source_id === meta.value?.source_id)
(column) =>
isLinksOrLTAR(column) &&
!column.system &&
column.source_id === meta.value?.source_id &&
(!appInfo.value.ee || vModel.value.fk_relation_column_id === column.id || (column?.colOptions as any)?.type === 'bt'),
)
.map((column) => ({ .map((column) => ({
col: column.colOptions, col: column.colOptions,
column, column,

Loading…
Cancel
Save