/ Fixed single view w/ slug
This commit is contained in:
@@ -34,13 +34,6 @@ export default {
|
|||||||
NestLoader
|
NestLoader
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
|
||||||
slug: {
|
|
||||||
type: String,
|
|
||||||
required: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
celestial: {},
|
celestial: {},
|
||||||
@@ -52,7 +45,7 @@ export default {
|
|||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// Fetches from API...
|
// Fetches from API...
|
||||||
fetchCelestial(this.slug)
|
fetchCelestial(this.$route.params.slug)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.celestial = addCelestialType(res)
|
this.celestial = addCelestialType(res)
|
||||||
this.celestialLoaded = true
|
this.celestialLoaded = true
|
||||||
Reference in New Issue
Block a user