mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-28 00:17:12 +01:00
trim
This commit is contained in:
parent
e299f88062
commit
da968cbc2c
@ -68,7 +68,10 @@ class StrategyConfigure extends React.Component {
|
||||
} else if (type === 'list') {
|
||||
let list = [];
|
||||
if (typeof value === 'string') {
|
||||
list = value.split(',');
|
||||
list = value
|
||||
.trim()
|
||||
.split(',')
|
||||
.filter(Boolean);
|
||||
}
|
||||
return (<StrategyInputList field={field} list={list} setConfig={this.setConfig} />);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user