summaryrefslogtreecommitdiffstats
path: root/stepped-solutions/21/frontend/components
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-09-24 22:22:08 -0400
committerGitHub <noreply@github.com>2018-09-24 22:22:08 -0400
commit64d0e7a6e36229f17b3eaef712f3d641b5b895ee (patch)
tree79774924ae1c8fe6d54b8fd328b5fb68d6d6cf52 /stepped-solutions/21/frontend/components
parentc1df54121ecf46c9d5631d39fd31f722d400f443 (diff)
parente7dd2826f07e96b86cfaba27c85ca1d603f10a4f (diff)
Merge pull request #28 from 416serg/patch-1
Update DeleteItem.js to fix typo
Diffstat (limited to 'stepped-solutions/21/frontend/components')
-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 });