fix: 人员选择ts类型错误 (#5427)

* fix: 人员选择ts 类型错误

Co-authored-by: zhangxulong <zhangxulong@baidu.com>
This commit is contained in:
ls 2022-09-23 11:48:20 +08:00 committed by GitHub
parent c72ca5a82c
commit 5b743dd31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,6 @@ export interface UserSelectProps extends ThemeProps, LocaleProps {
isReplace?: boolean, isReplace?: boolean,
isDelete?: boolean isDelete?: boolean
) => void; ) => void;
onTempChange: (value: Array<Option>) => void;
} }
export interface UserSelectState { export interface UserSelectState {
@ -261,11 +260,10 @@ export class UserSelect extends React.Component<
@autobind @autobind
onOpen() { onOpen() {
const {selection, tempSelection} = this.props; const {selection} = this.props;
this.setState({ this.setState({
isOpened: true, isOpened: true,
selection: selection || [], selection: selection || []
tempSelection: tempSelection || []
}); });
} }