Don't show primary display
This commit is contained in:
parent
76ae3a1331
commit
ca0ea3faf8
|
@ -122,22 +122,19 @@
|
|||
}
|
||||
|
||||
const table = await cache.actions.getTable(relationshipField.tableId)
|
||||
relationshipPanelColumns = Object.entries(relationshipField?.schema || {})
|
||||
.map(([name, column]) => {
|
||||
return {
|
||||
name: name,
|
||||
label: name,
|
||||
primaryDisplay: name === table.primaryDisplay,
|
||||
schema: {
|
||||
type: table.schema[name].type,
|
||||
visible: column.visible,
|
||||
readonly: column.readonly,
|
||||
},
|
||||
}
|
||||
})
|
||||
.sort((a, b) =>
|
||||
a.primaryDisplay === b.primaryDisplay ? 0 : a.primaryDisplay ? -1 : 1
|
||||
)
|
||||
relationshipPanelColumns = Object.entries(
|
||||
relationshipField?.schema || {}
|
||||
).map(([name, column]) => {
|
||||
return {
|
||||
name: name,
|
||||
label: name,
|
||||
schema: {
|
||||
type: table.schema[name].type,
|
||||
visible: column.visible,
|
||||
readonly: column.readonly,
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
$: fetchRelationshipPanelColumns(relationshipField)
|
||||
|
||||
|
|
Loading…
Reference in New Issue