From ad4eabd5698afa47000110294888bc512008c12e Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 2 Jan 2021 22:43:37 +0800 Subject: [PATCH] fix: set to null, not undefined --- packages/app/src/components/form.fields/drawer-select/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/components/form.fields/drawer-select/index.tsx b/packages/app/src/components/form.fields/drawer-select/index.tsx index 5cbacc7a0a..6482efd5a3 100644 --- a/packages/app/src/components/form.fields/drawer-select/index.tsx +++ b/packages/app/src/components/form.fields/drawer-select/index.tsx @@ -55,7 +55,7 @@ function DrawerSelectComponent(props) { onChange(data.value); setSelectedRowKeys([data.value]); } else { - onChange(data); + onChange(null); setSelectedRowKeys([]); } }}