syntax & variable renaming
This commit is contained in:
@@ -13,15 +13,15 @@ import Card from '../components/Card'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
categoryTitle: this.$route.params.category,
|
||||
categoryRouteTitle: this.$route.params.category,
|
||||
categories: store,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
category() {
|
||||
return this.categories.find(category => category.title.toLowerCase() === this.categoryTitle.toLowerCase())
|
||||
return this.categories.find(category => category.title.toLowerCase() === this.categoryRouteTitle.toLowerCase())
|
||||
}
|
||||
},
|
||||
components: { Card, },
|
||||
components: { Card },
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user