From 9bd79cf0824a8a3b3073bdc54bc585459fba021b Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 5 Feb 2021 19:43:46 +0800 Subject: [PATCH] fix: add associatedKey support for drawerSelect component --- .../app/src/components/form.fields/drawer-select/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 65fe37477..638f96c86 100644 --- a/packages/app/src/components/form.fields/drawer-select/index.tsx +++ b/packages/app/src/components/form.fields/drawer-select/index.tsx @@ -28,7 +28,7 @@ function transform({value, multiple, labelField, valueField = 'id'}) { } function DrawerSelectComponent(props) { - const { disabled, target, multiple, filter, associatedName, labelField, valueField = 'id', value, onChange } = props; + const { disabled, target, multiple, filter, resourceName, associatedKey, labelField, valueField = 'id', value, onChange } = props; const [selectedKeys, selectedValue] = transform({value, multiple, labelField, valueField }); const [visible, setVisible] = useState(false); const [selectedRowKeys, setSelectedRowKeys] = useState(multiple ? selectedKeys : [selectedKeys]); @@ -98,7 +98,9 @@ function DrawerSelectComponent(props) { {