diff --git a/full-skies-nuxt/pages/astres/index.vue b/full-skies-nuxt/pages/astres/index.vue index f41a980..fc66741 100644 --- a/full-skies-nuxt/pages/astres/index.vue +++ b/full-skies-nuxt/pages/astres/index.vue @@ -15,7 +15,6 @@ // API import { fetchCelestials } from '@/api/le-systeme-solaire' -// Global methods import CelestialsList from '@/components/celestials/CelestialsList.vue' export default { @@ -23,6 +22,7 @@ export default { components: { CelestialsList }, + data () { return { celestials: [] diff --git a/full-skies-nuxt/store/index.js b/full-skies-nuxt/store/index.js index 6f81cf7..7c67051 100644 --- a/full-skies-nuxt/store/index.js +++ b/full-skies-nuxt/store/index.js @@ -31,10 +31,8 @@ export const actions = { toggleFav: ({ commit, getters }, celestialId) => { // If the celestial is not faved if (!getters.isFav(celestialId)) { - // ... favs it commit('addFav', celestialId) } else { - // ...else unfavs commit('removeFav', celestialId) } }