Fix isLabelSyncedWithName toggle at object creation (#8646)

+ remove useless disableNameEdit prop (always has same value as disabled
prop)
This commit is contained in:
Marie
2024-11-21 15:15:25 +01:00
committed by GitHub
parent 3f98c2ddbe
commit cf73e32969
2 changed files with 20 additions and 18 deletions

View File

@ -186,8 +186,7 @@ export const ObjectSettings = ({ objectMetadataItem }: ObjectSettingsProps) => {
description="Name in both singular (e.g., 'Invoice') and plural (e.g., 'Invoices') forms."
/>
<SettingsDataModelObjectAboutForm
disabled={!objectMetadataItem.isCustom}
disableNameEdit={!objectMetadataItem.isCustom}
disableEdition={!objectMetadataItem.isCustom}
objectMetadataItem={objectMetadataItem}
onBlur={() => {
formConfig.handleSubmit(handleSave)();