Explorar el Código

fixed heroku deploy error

김보경 hace 5 años
padre
commit
1f7bb251f1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      pages/index.vue
  2. 1 1
      store/hero.js

+ 1 - 1
pages/index.vue

@@ -75,7 +75,7 @@ export default {
       // }
       courses : state => state.course.items,
       featuredBlogs: state => state.blog.items.featured,
-      courseHero: state => state.hero.item
+      courseHero: state => state.hero.item || {}
     })
   },
   async fetch({store}) {

+ 1 - 1
store/hero.js

@@ -1,5 +1,5 @@
 export const state = () => ({
-  item: null
+  item: {}
 })