Add and remove ':'s from template variables

pull/1347/head
Jared Scheib 2017-04-26 19:54:05 -07:00
parent 15837dcdf2
commit dee83724e3
1 changed files with 6 additions and 2 deletions

View File

@ -183,7 +183,11 @@ const TableInput = ({
autoFocus={name === autoFocusTarget}
className="input"
type="text"
defaultValue={defaultValue}
defaultValue={
name === 'tempVar'
? defaultValue.replace(/\u003a/g, '') // remove ':'s
: defaultValue
}
/>
</div>
: <div className="td" onClick={() => onStartEdit(name)}>{defaultValue}</div>
@ -226,7 +230,7 @@ class RowWrapper extends Component {
this.setState({isEditing: false, isNew: false})
const label = e.target.label.value
const tempVar = e.target.tempVar.value
const tempVar = `\u003a${e.target.tempVar.value}\u003a` // add ':'s
const {
source,