- Removed useless addCelestialType function

This commit is contained in:
Alexis
2021-03-28 18:37:35 +02:00
parent 7c63a0f678
commit 38c1f33952

View File

@@ -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.'