We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fbb98c commit 407e632Copy full SHA for 407e632
src/content/2/en/part2e.md
@@ -195,7 +195,7 @@ Now we are ready to add the logic for displaying the error message. Let's change
195
const changedNote = { ...note, important: !note.important }
196
197
noteService
198
- .update(changedNote).then(returnedNote => {
+ .update(id, changedNote).then(returnedNote => {
199
setNotes(notes.map(note => note.id !== id ? note : returnedNote))
200
})
201
.catch(error => {
0 commit comments