From e3d6d0c3793e12ea25ef22fcee0e5ddd8386bc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 25 Aug 2020 22:46:25 +0200 Subject: [PATCH] Fix assigning note IDs. --- src/components/NoteList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '' } },