Skip to content

Commit 874a409

Browse files
kaliatechktsn
authored andcommitted
Fix minor error in getters docs example (#671)
1 parent 33b1e5c commit 874a409

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/en/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ You can also pass arguments to getters by returning a function. This is particul
6666
getters: {
6767
// ...
6868
getTodoById: (state, getters) => (id) => {
69-
return getters.todos.find(todo => todo.id === id)
69+
return state.todos.find(todo => todo.id === id)
7070
}
7171
}
7272
```

docs/ja/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ computed: {
6666
getters: {
6767
// ...
6868
getTodoById: (state, getters) => (id) => {
69-
return getters.todos.find(todo => todo.id === id)
69+
return state.todos.find(todo => todo.id === id)
7070
}
7171
}
7272
```

docs/ru/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ computed: {
6767
getters: {
6868
// ...
6969
getTodoById: (state, getters) => (id) => {
70-
return getters.todos.find(todo => todo.id === id)
70+
return state.todos.find(todo => todo.id === id)
7171
}
7272
}
7373
```

0 commit comments

Comments
 (0)