Skip to content

Commit 407e632

Browse files
authored
code block: typo
noteService.update requires the 'id' parameter also. The GitHub link for part 2-7 branch is fine though
1 parent 8fbb98c commit 407e632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Now we are ready to add the logic for displaying the error message. Let's change
195195
const changedNote = { ...note, important: !note.important }
196196

197197
noteService
198-
.update(changedNote).then(returnedNote => {
198+
.update(id, changedNote).then(returnedNote => {
199199
setNotes(notes.map(note => note.id !== id ? note : returnedNote))
200200
})
201201
.catch(error => {

0 commit comments

Comments
 (0)