Fix bugs and issues before first production build

This commit is contained in:
John Lyon-Smith
2018-04-09 08:37:07 -07:00
parent ee836def93
commit 094c9ba25c
5 changed files with 56 additions and 34 deletions

View File

@@ -35,9 +35,13 @@ export class BoundInput extends React.Component {
@autobind
handleChangeText(newText) {
const { binder, name } = this.props
const state = binder.getFieldState(name)
this.setState(binder.updateFieldValue(name, newText))
// TODO: Sometimes this is undefined and causes a crash?!
if (binder) {
const state = binder.getFieldState(name)
this.setState(binder.updateFieldValue(name, newText))
}
}
render() {