summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sick-fits/frontend/package.json2
-rwxr-xr-xstepped-solutions/21/frontend/components/DeleteItem.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/sick-fits/frontend/package.json b/sick-fits/frontend/package.json
index 243daa9..9cde1de 100644
--- a/sick-fits/frontend/package.json
+++ b/sick-fits/frontend/package.json
@@ -42,7 +42,7 @@
"casual": "^1.5.19",
"enzyme-to-json": "^3.3.4",
"graphql-tools": "^3.0.2",
- "jest": "^22.4.4",
+ "jest": "^23.6.0",
"jest-transform-graphql": "^2.1.0"
},
"jest": {
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 });