diff options
Diffstat (limited to 'components/UpdateItem.js')
| -rw-r--r-- | components/UpdateItem.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/UpdateItem.js b/components/UpdateItem.js index 0edad06..a3b45a8 100644 --- a/components/UpdateItem.js +++ b/components/UpdateItem.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import { graphql, gql, compose } from 'react-apollo' -import { SINGLE_LINK_QUERY, UPDATE_LINK_MUTATION } from '../queries'; +import { SINGLE_ITEM_QUERY, UPDATE_LINK_MUTATION } from '../queries'; class UpdateLink extends Component { @@ -66,7 +66,7 @@ class UpdateLink extends Component { const ComponentWithMutations = compose( // First, query for getting the link - graphql(SINGLE_LINK_QUERY, { + graphql(SINGLE_ITEM_QUERY, { name: 'findItem', options: ({ id }) => ({ variables: { id } @@ -76,5 +76,4 @@ const ComponentWithMutations = compose( graphql(UPDATE_LINK_MUTATION, { name: 'updateItem' }) )(UpdateLink); - export default ComponentWithMutations; |
