Forráskód Böngészése

fixed heroku deploy error

김보경 5 éve
szülő
commit
1f7bb251f1
2 módosított fájl, 2 hozzáadás és 2 törlés
  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: {}
 })