diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-04-05 16:52:40 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-04-05 16:52:40 -0400 |
| commit | 41a86494f3caea96dd4ed32733310783e47b429d (patch) | |
| tree | 344d94c5cb2966f9ddd49b9f7ab2ad02ed88bce7 /frontend/components/DeleteItem.js | |
| parent | fdc7ae6a0a0cced82791bd03cf575f2fa68fca99 (diff) | |
refactor
Diffstat (limited to 'frontend/components/DeleteItem.js')
| -rw-r--r-- | frontend/components/DeleteItem.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/components/DeleteItem.js b/frontend/components/DeleteItem.js index 8609ca7..e854340 100644 --- a/frontend/components/DeleteItem.js +++ b/frontend/components/DeleteItem.js @@ -20,7 +20,11 @@ class DeleteItem extends React.Component { render() { return ( - <Mutation mutation={REMOVE_ITEM_MUTATION} variables={{ id: this.props.id }} update={this.update}> + <Mutation + mutation={REMOVE_ITEM_MUTATION} + variables={{ id: this.props.id }} + update={this.update} + > {(removeItem, { error }) => ( <button onClick={() => { |
