add id to params for api call
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user