summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiy Dybskiy <hey@416serg.me>2018-09-21 21:02:59 -0400
committerGitHub <noreply@github.com>2018-09-21 21:02:59 -0400
commite7dd2826f07e96b86cfaba27c85ca1d603f10a4f (patch)
tree8f27eb26ce98d9939d73378b36c57fee0fa49c1e
parent051f9d7191d9184f303da071b3eb85852e71d4a5 (diff)
Update DeleteItem.js
Fix typo
-rwxr-xr-xstepped-solutions/21/frontend/components/DeleteItem.js2
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 });