Don't show relationships and formulas

This commit is contained in:
Adria Navarro 2024-08-19 10:20:29 +02:00
parent d72b5849da
commit c745b99a39
1 changed files with 10 additions and 7 deletions

View File

@ -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,