Video 26
This commit is contained in:
parent
c61dd1e421
commit
fe88e6f92f
@ -5,6 +5,8 @@ const addNote = (title, body) => {
|
|||||||
const notes = loadNotes();
|
const notes = loadNotes();
|
||||||
const duplicateNote = notes.find((note) => note.title === title);
|
const duplicateNote = notes.find((note) => note.title === title);
|
||||||
|
|
||||||
|
debugger;
|
||||||
|
|
||||||
if (!duplicateNote) {
|
if (!duplicateNote) {
|
||||||
notes.push({
|
notes.push({
|
||||||
title: title,
|
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