mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 12:34:10 +03:00
Filter out system object for relation object destination (#3108)
filter out system object for relation object destination
This commit is contained in:
parent
e67f6873d3
commit
7f66eb9459
@ -89,7 +89,9 @@ export const SettingsObjectFieldRelationForm = ({
|
||||
fullWidth
|
||||
disabled={disableRelationEdition}
|
||||
value={values.objectMetadataId}
|
||||
options={objectMetadataItems.map((objectMetadataItem) => ({
|
||||
options={objectMetadataItems
|
||||
.filter((objectMetadataItem) => !objectMetadataItem.isSystem)
|
||||
.map((objectMetadataItem) => ({
|
||||
label: objectMetadataItem.labelPlural,
|
||||
value: objectMetadataItem.id,
|
||||
Icon: getIcon(objectMetadataItem.icon),
|
||||
|
Loading…
Reference in New Issue
Block a user