diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/lookupOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/lookupOptions.vue
index 0606047029..2484e2a6bc 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/lookupOptions.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/lookupOptions.vue
@@ -18,9 +18,9 @@
dense
>
- {{
+ {{ item.column.title }} ({{ relationNames[item.col.type] }} {{
item.title || item.table_name
- }} ({{ relationNames[item.col.type] }})
+ }})
@@ -74,6 +74,7 @@ export default {
c.uidt === UITypes.LinkToAnotherRecord && !c.system
).map(c => ({
col: c.colOptions,
+ column: c,
...this.tables.find(t => t.id === c.colOptions.fk_related_model_id)
}))
diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue
index bae2ede28d..73b9f445c9 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue
@@ -18,9 +18,9 @@
dense
>
- {{
+ {{ item.column.title }} ({{ relationNames[item.col.type] }} {{
item.title || item.table_name
- }} ({{ relationNames[item.col.type] }})
+ }})
@@ -98,6 +98,7 @@ export default {
c.uidt === UITypes.LinkToAnotherRecord && c.colOptions.type !== 'bt' && !c.system
).map(c => ({
col: c.colOptions,
+ column: c,
...this.tables.find(t => t.id === c.colOptions.fk_related_model_id)
}))