diff --git a/packages/nc-gui/components/virtual-cell/Links.vue b/packages/nc-gui/components/virtual-cell/Links.vue index d477b53b94..fee954d0ee 100644 --- a/packages/nc-gui/components/virtual-cell/Links.vue +++ b/packages/nc-gui/components/virtual-cell/Links.vue @@ -10,12 +10,6 @@ const column = inject(ColumnInj)! const meta = inject(MetaInj, ref()) -const relColumn = computed(() => { - return meta.value.columns.find((c: ColumnType) => c.id === column.value?.colOptions?.fk_relation_column_id) -}) - -provide(ColumnInj, relColumn) - const cellValue = inject(CellValueInj)! const row = inject(RowInj)! @@ -39,7 +33,7 @@ const { isUIAllowed } = useUIPermission() const { state, isNew } = useSmartsheetRowStoreOrThrow() const { relatedTableMeta, loadRelatedTableMeta, relatedTableDisplayValueProp } = useProvideLTARStore( - relColumn as Ref>, + column as Ref>, row, isNew, reloadRowTrigger.trigger,