Video 27
This commit is contained in:
parent
fe88e6f92f
commit
b2665bbfb4
@ -5,8 +5,6 @@ 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user