diff --git a/packages/nc-gui/components/smartsheet/column/LookupOptions.vue b/packages/nc-gui/components/smartsheet/column/LookupOptions.vue index fe74efb527..01cdb90ca4 100644 --- a/packages/nc-gui/components/smartsheet/column/LookupOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LookupOptions.vue @@ -56,7 +56,7 @@ const columns = computed(() => { if (!selectedTable.value?.id) { return [] } - return metas.value[selectedTable.id]?.columns.filter( + return metas.value[selectedTable.value.id]?.columns.filter( (c: ColumnType) => vModel.value.fk_lookup_column_id === c.id || (!isSystemColumn(c) && c.id !== vModel.value.id && c.uidt !== UITypes.Links), ) diff --git a/packages/nc-gui/components/smartsheet/column/RollupOptions.vue b/packages/nc-gui/components/smartsheet/column/RollupOptions.vue index f83d439056..4681f03bd0 100644 --- a/packages/nc-gui/components/smartsheet/column/RollupOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/RollupOptions.vue @@ -79,7 +79,7 @@ const columns = computed(() => { return [] } - return metas.value[selectedTable.id]?.columns.filter( + return metas.value[selectedTable.value.id]?.columns.filter( (c: ColumnType) => !isVirtualCol(c.uidt as UITypes) && (!isSystemColumn(c) || c.pk), ) })