Fix assigning note IDs.
This commit is contained in:
parent
41c0cbf7d2
commit
e3d6d0c379
|
@ -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 = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue