From ee4e2cd3441e2d800b50900ae630c26477d4712a Mon Sep 17 00:00:00 2001 From: Danny Feliz Date: Wed, 31 Mar 2021 03:41:37 -0400 Subject: [PATCH] docs: fix todo example (#413) --- docs/introduction.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/introduction.md b/docs/introduction.md index 72cb07e1..d9f5a70f 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -67,9 +67,9 @@ export const todos = defineStore({ filteredTodos() { if (this.filter === 'finished') { // call other getters with autocompletion ✨ - return this.finishedTodos() + return this.finishedTodos } else if (this.filter === 'unfinished') { - return this.unfinishedTodos() + return this.unfinishedTodos } return this.todos }, @@ -78,7 +78,7 @@ export const todos = defineStore({ // any amount of arguments, return a promise or not addTodo(text) { // you can directly mutate the state - this.todos.push({ text, id: nextId++, isFinished: false }) + this.todos.push({ text, id: this.nextId++, isFinished: false }) }, }, }) -- 2.47.3