Fix assigning note IDs.

This commit is contained in:
Lukáš Kucharczyk 2020-08-25 22:46:25 +02:00
parent 41c0cbf7d2
commit e3d6d0c379
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ''
}
},