瀏覽代碼

:bug: storing episode title instead of the whole tree

tags/0.9.0
J 4 年之前
父節點
當前提交
58300d357e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      vue-theme/src/store/modules/artist.js

+ 1
- 1
vue-theme/src/store/modules/artist.js 查看文件

68
     })
68
     })
69
     const flatPacked = []
69
     const flatPacked = []
70
     Object.keys(byEpisode).forEach(episode => {
70
     Object.keys(byEpisode).forEach(episode => {
71
-        flatPacked.push({ slug: byEpisode, title: byEpisode, inbetween: true })
71
+        flatPacked.push({ slug: episode, title: episode, inbetween: true })
72
         byEpisode[episode].forEach(artist => flatPacked.push(artist))
72
         byEpisode[episode].forEach(artist => flatPacked.push(artist))
73
     })
73
     })
74
     console.log('flatPacked :', flatPacked)
74
     console.log('flatPacked :', flatPacked)

Loading…
取消
儲存