diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-04-05 13:54:22 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-04-05 13:54:22 -0400 |
| commit | f4f10d5eb690a33dd1c112358457a2b987297f26 (patch) | |
| tree | d97326763dd016c13a068fb7dee40fc0b9667f83 /frontend/components/UpdateItem.js | |
| parent | a75b2491758a451283e2a373bb3fbe886520b345 (diff) | |
work
Diffstat (limited to 'frontend/components/UpdateItem.js')
| -rw-r--r-- | frontend/components/UpdateItem.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/components/UpdateItem.js b/frontend/components/UpdateItem.js index 4292d41..a96c8f7 100644 --- a/frontend/components/UpdateItem.js +++ b/frontend/components/UpdateItem.js @@ -38,7 +38,8 @@ class UpdateItem extends Component { render() { return ( <Query query={SINGLE_ITEM_QUERY} variables={{ id: this.props.id }}> - {({ data: { items } }) => { + {({ data: { items }, loading }) => { + if (loading) return <p>Loading...</p>; if (!items || !items.length) return <p>Item Not Found</p>; const [item] = items; return ( |
