Fix bugs when adding activity

This commit is contained in:
John Lyon-Smith
2018-04-27 18:10:39 -07:00
parent 93f3d462b2
commit 53a4df55a2
8 changed files with 138 additions and 79 deletions

View File

@@ -34,10 +34,10 @@ export class BoundInput extends React.Component {
@autobind
handleChangeText(newText) {
const { binder, name } = this.props
if (binder) {
this.setState(binder.updateFieldValue(name, newText))
if (this.props.binder) {
this.setState(
this.props.binder.updateFieldValue(this.props.name, newText)
)
}
}