Fix assigning note IDs.
This commit is contained in:
@ -32,7 +32,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addNote() {
|
addNote() {
|
||||||
this.notes.push({ id: this.notes.length + 1, text: this.content })
|
this.notes.push({ id: this.notes.length, text: this.content })
|
||||||
this.content = ''
|
this.content = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user