Skip to content

Commit e7dd282

Browse files
author
Sergiy Dybskiy
authored
Update DeleteItem.js
Fix typo
1 parent 051f9d7 commit e7dd282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stepped-solutions/21/frontend/components/DeleteItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DeleteItem extends Component {
1717
// 1. Read the cache for the items we want
1818
const data = cache.readQuery({ query: ALL_ITEMS_QUERY });
1919
console.log(data, payload);
20-
// 2. Filter the deleted itemout of the page
20+
// 2. Filter the deleted item out of the page
2121
data.items = data.items.filter(item => item.id !== payload.data.deleteItem.id);
2222
// 3. Put the items back!
2323
cache.writeQuery({ query: ALL_ITEMS_QUERY, data });

0 commit comments

Comments
 (0)