From c745b99a39e5e286e79b41cddb9c7c7388d80cad Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 19 Aug 2024 10:20:29 +0200 Subject: [PATCH] Don't show relationships and formulas --- .../grid/controls/ColumnsSettingContent.svelte | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/frontend-core/src/components/grid/controls/ColumnsSettingContent.svelte b/packages/frontend-core/src/components/grid/controls/ColumnsSettingContent.svelte index cc575f04f1..9eef278407 100644 --- a/packages/frontend-core/src/components/grid/controls/ColumnsSettingContent.svelte +++ b/packages/frontend-core/src/components/grid/controls/ColumnsSettingContent.svelte @@ -115,13 +115,16 @@ const relTable = $tables.list.find( table => table._id === column.schema.tableId ) - relationshipPanelColumns = Object.values( - relTable?.schema || {} - ).map(schema => ({ - name: schema.name, - label: schema.name, - schema, - })) + relationshipPanelColumns = Object.values(relTable?.schema || {}) + .filter( + schema => + ![FieldType.LINK, FieldType.FORMULA].includes(schema.type) + ) + .map(schema => ({ + name: schema.name, + label: schema.name, + schema, + })) console.warn({ columns, relationshipPanelColumns,