diff options
Diffstat (limited to 'stepped-solutions/21/frontend')
| -rwxr-xr-x | stepped-solutions/21/frontend/components/DeleteItem.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stepped-solutions/21/frontend/components/DeleteItem.js b/stepped-solutions/21/frontend/components/DeleteItem.js index 4d9bd2b..e1974e8 100755 --- a/stepped-solutions/21/frontend/components/DeleteItem.js +++ b/stepped-solutions/21/frontend/components/DeleteItem.js @@ -17,7 +17,7 @@ class DeleteItem extends Component { // 1. Read the cache for the items we want const data = cache.readQuery({ query: ALL_ITEMS_QUERY }); console.log(data, payload); - // 2. Filter the deleted itemout of the page + // 2. Filter the deleted item out of the page data.items = data.items.filter(item => item.id !== payload.data.deleteItem.id); // 3. Put the items back! cache.writeQuery({ query: ALL_ITEMS_QUERY, data }); |
