diff --git a/src/components/EditableItem/index.js b/src/components/EditableItem/index.js index 5b2ef0028ba92cc04039c9259e16fdac6f2f9078..40034d0ac9d870967f9248dc34986fb085229278 100644 --- a/src/components/EditableItem/index.js +++ b/src/components/EditableItem/index.js @@ -19,7 +19,7 @@ export default class EditableItem extends PureComponent { check = () => { this.setState({ editable: false }); const { value } = this.state; - const { onChange } = this.state; + const { onChange } = this.props; if (onChange) { onChange(value); }