fix(client): cannot read properties of undefined (reading 'interface')

This commit is contained in:
chenos 2021-10-12 22:01:18 +08:00
parent c829ae00d0
commit 5b9a24cba1
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ export const FieldDesignableBar = observer((props) => {
>
</Menu.Item>
{collectionField.interface === 'linkTo' && (
{collectionField?.interface === 'linkTo' && (
<Menu.Item>
<div
style={{

View File

@ -2145,7 +2145,7 @@ Table.Column.DesignableBar = () => {
>
</Menu.Item>
{collectionField.interface === 'linkTo' && (
{collectionField?.interface === 'linkTo' && (
<Menu.Item>
<div
style={{