File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ You can also pass arguments to getters by returning a function. This is particul
66
66
getters: {
67
67
// ...
68
68
getTodoById : (state , getters ) => (id ) => {
69
- return getters .todos .find (todo => todo .id === id)
69
+ return state .todos .find (todo => todo .id === id)
70
70
}
71
71
}
72
72
```
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ computed: {
66
66
getters: {
67
67
// ...
68
68
getTodoById : (state , getters ) => (id ) => {
69
- return getters .todos .find (todo => todo .id === id)
69
+ return state .todos .find (todo => todo .id === id)
70
70
}
71
71
}
72
72
```
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ computed: {
67
67
getters: {
68
68
// ...
69
69
getTodoById : (state , getters ) => (id ) => {
70
- return getters .todos .find (todo => todo .id === id)
70
+ return state .todos .find (todo => todo .id === id)
71
71
}
72
72
}
73
73
```
You can’t perform that action at this time.
0 commit comments