Pārlūkot izejas kodu

:bug: invalid var assignment fix

tags/0.9.0
j 4 gadus atpakaļ
vecāks
revīzija
88d1c6816c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      vue-theme/src/pages/single.vue

+ 1
- 1
vue-theme/src/pages/single.vue Parādīt failu

145
          */
145
          */
146
         checkAndSetHero(post) {
146
         checkAndSetHero(post) {
147
             if(!post) return
147
             if(!post) return
148
-            const json = { url: post.featured, heroType: 'image' }
148
+            let json = { url: post.featured, heroType: 'image' }
149
             if(post.hero && JSON.parse(post.hero).url) {
149
             if(post.hero && JSON.parse(post.hero).url) {
150
                 json = JSON.parse(post.hero)
150
                 json = JSON.parse(post.hero)
151
                 json.heroType = 'video'
151
                 json.heroType = 'video'

Notiek ielāde…
Atcelt
Saglabāt