No need for computer property

This commit is contained in:
Kevin Van Der Werff
2019-06-22 12:59:22 +02:00
parent 48aeb6f804
commit b40e3aeeb0

View File

@@ -12,12 +12,7 @@ import Card from '../components/Card'
export default {
data () {
return {
categoryRouteTitle: this.$route.params.category,
}
},
computed: {
category() {
return this.$store.getters['resources/findResources'](this.categoryRouteTitle)
category: this.$store.getters['resources/findResources'](this.$route.params.category),
}
},
components: { Card },