- Removed useless addCelestialType function
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
import { fetchCelestials } from '@/api/le-systeme-solaire'
|
import { fetchCelestials } from '@/api/le-systeme-solaire'
|
||||||
|
|
||||||
// Global methods
|
// Global methods
|
||||||
import { addCelestialsType } from '@/plugins/methods'
|
|
||||||
|
|
||||||
import CelestialsList from '@/components/celestials/CelestialsList.vue'
|
import CelestialsList from '@/components/celestials/CelestialsList.vue'
|
||||||
import NestLoader from '@/components/NestLoader.vue'
|
import NestLoader from '@/components/NestLoader.vue'
|
||||||
@@ -45,7 +44,7 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
fetchCelestials()
|
fetchCelestials()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.celestials = addCelestialsType(res)
|
this.celestials = res
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.error = 'Impossible de récupérer les astres.'
|
this.error = 'Impossible de récupérer les astres.'
|
||||||
|
|||||||
Reference in New Issue
Block a user