删除无效代码

This commit is contained in:
catchonme 2019-05-06 17:54:38 +08:00
parent 9f2417a3ff
commit ff6f3d32d6

View File

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