|
|
@ -196,9 +196,9 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis |
|
|
|
]} |
|
|
|
> |
|
|
|
<Select mode="multiple" disabled={type === 'view'} options={userOpt} loading={userLoading} onChange={(values) => { |
|
|
|
const selectUser = userList.filter(u => values?.includes(u.id)) |
|
|
|
const selectUser = userList?.filter(u => values?.includes(u.id)) |
|
|
|
form.setFieldsValue({ |
|
|
|
userDept: [...new Set(selectUser.map(u => u.department.name))].join() |
|
|
|
userDept: [...new Set(selectUser?.map(u => u.department.name))].join() |
|
|
|
}); |
|
|
|
}} /> |
|
|
|
</Form.Item> |
|
|
|