/ Fixed single view w/ slug

This commit is contained in:
Alexis
2021-03-26 15:00:30 +01:00
parent 70cc19dd51
commit 3713d0cfa0

View File

@@ -34,13 +34,6 @@ export default {
NestLoader
},
props: {
slug: {
type: String,
required: true
}
},
data () {
return {
celestial: {},
@@ -52,7 +45,7 @@ export default {
mounted () {
// Fetches from API...
fetchCelestial(this.slug)
fetchCelestial(this.$route.params.slug)
.then((res) => {
this.celestial = addCelestialType(res)
this.celestialLoaded = true