From e7dd2826f07e96b86cfaba27c85ca1d603f10a4f Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Fri, 21 Sep 2018 21:02:59 -0400 Subject: Update DeleteItem.js Fix typo --- stepped-solutions/21/frontend/components/DeleteItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stepped-solutions/21/frontend') 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 }); -- cgit v1.3