Skip to content

Commit

Permalink
Use shortform
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Richter committed Apr 11, 2018
1 parent e32a2cd commit 39dc345
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ListView/_ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@
// Like methods, but are cached until dependency changes
computed: {
...mapState({
todos: 'todos',
}),
...mapState(['todos']),
counterDone () {
return this.todos.filter(todo => todo.done).length
Expand Down

0 comments on commit 39dc345

Please sign in to comment.