删除无效代码

This commit is contained in:
catchonme 2019-05-06 17:54:38 +08:00
parent 9f2417a3ff
commit ff6f3d32d6
1 changed files with 1 additions and 5 deletions

View File

@ -147,14 +147,10 @@ export default class IconPickerControl extends React.PureComponent<IconPickerPro
}
const {
formItem,
onChange
} = this.props;
const selectedOptions = formItem ? formItem.selectedOptions : [];
if (!this.state.inputValue) {
const newValue = selectedOptions.concat();
newValue.pop();
if (!this.state.inputValue) {
onChange('');
this.setState({
inputValue: ''