add id to params for api call

This commit is contained in:
igoradamenko
2018-05-18 19:38:34 +03:00
parent 6ed73901e7
commit 91f6e8e716
+1 -1
View File
@@ -84,7 +84,7 @@ export default class Input extends Component {
this.setState({ isFieldDisabled: true, isErrorShown: false });
if (mods.mode === 'edit') {
api.edit({ text })
api.edit({ text, id })
.then(() => {
if (this.props.onSubmit) {
this.props.onSubmit({ id });