From c926b6aef2975433db9febda8d18124e9c8e938c Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Fri, 27 Oct 2023 07:56:04 +0800 Subject: [PATCH] chore: update comment --- packages/core/client/src/block-provider/FormBlockProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index e4a428b97..a1b1b1ccc 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -56,7 +56,7 @@ const InternalFormBlockProvider = (props) => { ); } else if ( formBlockValue.type === 'create' && - // 点击关系表格区块的 Add new 按钮,在弹窗中新增的表单区块,是不需要重置 record 的。在这里用 record 是否为空来判断 + // 关系表单区块的 record 应该是空的,因为其是一个创建数据的表单; !_.isEmpty(_.omit(record, ['__parent', '__collectionName'])) && // association 不为空,说明是关系区块 association