|
@@ -20,11 +20,13 @@ function InnerContactField(props) {
|
|
|
}}
|
|
|
filterOption={(input, option) => option.children.toLowerCase().includes(input.toLowerCase())}
|
|
|
>
|
|
|
- {userList.map(item => (
|
|
|
- <Option key={item.ID} value={item.DingUserId}>
|
|
|
- {item.CName}
|
|
|
- </Option>
|
|
|
- ))}
|
|
|
+ {(userList || [])
|
|
|
+ .filter(item => item.DingUserId)
|
|
|
+ .map(item => (
|
|
|
+ <Option key={item.ID} value={item.DingUserId}>
|
|
|
+ {item.CName}
|
|
|
+ </Option>
|
|
|
+ ))}
|
|
|
</Select>
|
|
|
);
|
|
|
}
|