diff --git a/src/components/NoteList.vue b/src/components/NoteList.vue index 91d5c1b..c2ca6c2 100644 --- a/src/components/NoteList.vue +++ b/src/components/NoteList.vue @@ -32,7 +32,7 @@ export default { }, methods: { addNote() { - this.notes.push({ id: this.notes.length + 1, text: this.content }) + this.notes.push({ id: this.notes.length, text: this.content }) this.content = '' } },