From 84edb5563febdcde2c2466f7063b2b70d2290590 Mon Sep 17 00:00:00 2001 From: GotPPay Date: Thu, 25 Jan 2018 16:09:12 +0100 Subject: [PATCH] prevent space in question name --- web/src/components/IntentDetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/IntentDetails.js b/web/src/components/IntentDetails.js index 8e76100..a395bf7 100644 --- a/web/src/components/IntentDetails.js +++ b/web/src/components/IntentDetails.js @@ -126,7 +126,7 @@ class IntentDetails extends Component { handleIntentNameEdit(e){ if (e.length === INTENT_NAME_MAX_LENGTH) return; let newIntent = this.state.intent; - newIntent.intentName = e; + newIntent.intentName = e.replace(/\s/g, ''); //remove all spaces from intent name this.setState({intent: newIntent}); } }