From 3eeb4514e574b9bda16afcd6de14e134e04a5bc0 Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Mon, 5 Feb 2018 11:58:21 -0800 Subject: [PATCH] accepts spaces in the kapacitor connection name --- ui/src/kapacitor/containers/KapacitorPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/kapacitor/containers/KapacitorPage.js b/ui/src/kapacitor/containers/KapacitorPage.js index 4204d62da..0fbf3d6c7 100644 --- a/ui/src/kapacitor/containers/KapacitorPage.js +++ b/ui/src/kapacitor/containers/KapacitorPage.js @@ -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