Merge pull request #2752 from influxdata/kapacitor-spaces
Kapacitor page allows users to add spaces to kapacitor namepull/2757/head^2
commit
58a124bf4a
|
@ -55,7 +55,7 @@ class KapacitorPage extends Component {
|
|||
const {value, name} = e.target
|
||||
|
||||
this.setState(prevState => {
|
||||
const update = {[name]: value.trim()}
|
||||
const update = {[name]: value}
|
||||
return {kapacitor: {...prevState.kapacitor, ...update}}
|
||||
})
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class KapacitorPage extends Component {
|
|||
router,
|
||||
} = this.props
|
||||
const {kapacitor} = this.state
|
||||
|
||||
kapacitor.name = kapacitor.name.trim()
|
||||
const isNameTaken = kapacitors.some(k => k.name === kapacitor.name)
|
||||
const isNew = !params.id
|
||||
|
||||
|
|
Loading…
Reference in New Issue