summaryrefslogtreecommitdiffstats
path: root/frontend/components/DeleteItem.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-05 16:52:40 -0400
committerWes Bos <wesbos@gmail.com>2018-04-05 16:52:40 -0400
commit41a86494f3caea96dd4ed32733310783e47b429d (patch)
tree344d94c5cb2966f9ddd49b9f7ab2ad02ed88bce7 /frontend/components/DeleteItem.js
parentfdc7ae6a0a0cced82791bd03cf575f2fa68fca99 (diff)
refactor
Diffstat (limited to 'frontend/components/DeleteItem.js')
-rw-r--r--frontend/components/DeleteItem.js6
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={() => {