From c0de2384df472ca39b8867fa23c90adeb8380590 Mon Sep 17 00:00:00 2001 From: sealday Date: Tue, 12 Mar 2024 20:09:35 +0800 Subject: [PATCH] fix: linkage should set undefined --- packages/core/client/src/schema-component/antd/form-v2/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx index 30bff23d2..2358b4894 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx @@ -270,7 +270,7 @@ function getSubscriber( field[fieldName] = lastState?.value; //字段隐藏时清空数据 if (fieldName === 'display' && lastState?.value === 'none') { - field.value = null; + field.value = undefined; } }