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:
parent
61dd7680a4
commit
02d4662693
@ -13,6 +13,7 @@ const style = {
|
||||
minWidth: '300px',
|
||||
maxWidth: '100%',
|
||||
margin: '5px 20px 15px 0px',
|
||||
background: '#f2f9fc',
|
||||
};
|
||||
class StrategyConfigure extends React.Component {
|
||||
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user