From 39dc3455eaf834ac1a6b2b6b1c9266188cd4dc96 Mon Sep 17 00:00:00 2001 From: Ben Richter Date: Wed, 11 Apr 2018 15:44:02 +0200 Subject: [PATCH] Use shortform --- src/components/ListView/_ListView.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ListView/_ListView.vue b/src/components/ListView/_ListView.vue index da2ffe0..5180e93 100644 --- a/src/components/ListView/_ListView.vue +++ b/src/components/ListView/_ListView.vue @@ -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