fix: avoid errors

This commit is contained in:
Rairn 2023-04-24 10:29:01 +08:00
parent 460d69fba8
commit 7d63262f8e

View File

@ -538,7 +538,7 @@ FormItem.Designer = function Designer() {
)} )}
{form && {form &&
!form?.readPretty && !form?.readPretty &&
['o2m', 'm2m'].includes(collectionField.interface) && ['o2m', 'm2m'].includes(collectionField?.interface) &&
fieldSchema['x-component'] !== 'TableField' && ( fieldSchema['x-component'] !== 'TableField' && (
<SchemaSettings.SwitchItem <SchemaSettings.SwitchItem
key="multiple" key="multiple"