Forbid creation of link field type (#6237)

This is the first step of Link field type deprecation
(https://github.com/twentyhq/twenty/issues/5909).
Forbid creation of link field type in product and api. Update to this
type is not a concern as we do not allow the update of field type.
This commit is contained in:
Marie
2024-07-12 15:28:17 +02:00
committed by GitHub
parent 726308d3b6
commit a44249287f
3 changed files with 44 additions and 36 deletions

View File

@ -213,6 +213,7 @@ export const SettingsObjectFieldEdit = () => {
<StyledSettingsObjectFieldTypeSelect
disabled
fieldMetadataItem={activeMetadataField}
excludedFieldTypes={[FieldMetadataType.Link]}
/>
<SettingsDataModelFieldSettingsFormCard
disableCurrencyForm

View File

@ -159,7 +159,7 @@ export const SettingsObjectNewFieldStep2 = () => {
[
// FieldMetadataType.Email,
// FieldMetadataType.FullName,
// FieldMetadataType.Link,
FieldMetadataType.Link,
FieldMetadataType.Numeric,
FieldMetadataType.Probability,
// FieldMetadataType.Uuid,