Explorar o código

fixed heroku deploy error

김보경 %!s(int64=5) %!d(string=hai) anos
pai
achega
1f7bb251f1
Modificáronse 2 ficheiros con 2 adicións e 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: {}
 })