diff options
| author | Sergiy Dybskiy <hey@416serg.me> | 2018-09-21 21:02:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-21 21:02:59 -0400 |
| commit | e7dd2826f07e96b86cfaba27c85ca1d603f10a4f (patch) | |
| tree | 8f27eb26ce98d9939d73378b36c57fee0fa49c1e /stepped-solutions | |
| parent | 051f9d7191d9184f303da071b3eb85852e71d4a5 (diff) | |
Update DeleteItem.js
Fix typo
Diffstat (limited to 'stepped-solutions')
| -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 }); |
