1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Fix minor bug

This commit is contained in:
ivaosthu 2016-12-19 21:23:45 +01:00
parent 61dd7680a4
commit 02d4662693
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ const style = {
minWidth: '300px',
maxWidth: '100%',
margin: '5px 20px 15px 0px',
background: '#f2f9fc',
};
class StrategyConfigure extends React.Component {

View File

@ -48,9 +48,9 @@ export default class InputList extends Component {
}
onClose (index) {
const { field, list, setConfig } = this.props;
const { name, list, setConfig } = this.props;
list[index] = null;
setConfig(field, list.length === 1 ? '' : list.filter(Boolean).join(','));
setConfig(name, list.length === 1 ? '' : list.filter(Boolean).join(','));
}
render () {