Video 26
This commit is contained in:
parent
c61dd1e421
commit
fe88e6f92f
@ -5,6 +5,8 @@ const addNote = (title, body) => {
|
||||
const notes = loadNotes();
|
||||
const duplicateNote = notes.find((note) => note.title === title);
|
||||
|
||||
debugger;
|
||||
|
||||
if (!duplicateNote) {
|
||||
notes.push({
|
||||
title: title,
|
||||
|
@ -1 +1 @@
|
||||
[{"title":"List","body":"Sweater, Pants"},{"title":"Course Ideas","body":""}]
|
||||
[{"title":"List","body":"Sweater, Pants"},{"title":"Course Ideas","body":""},{"title":"Courses","body":"Node.js"}]
|
Loading…
Reference in New Issue
Block a user