fix: remove pattern without form item (#528)

This commit is contained in:
金昶 2022-06-23 16:10:24 +08:00 committed by GitHub
parent 4481109b1e
commit e65ed6dfa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ FormItem.Designer = () => {
}}
/>
)}
{!form?.readPretty && collectionField?.interface !== 'o2m' && (
{form && !form?.readPretty && collectionField?.interface !== 'o2m' && (
<SchemaSettings.SelectItem
key="pattern"
title={t('Pattern')}