Skip to content

Commit

Permalink
Only show published front page posts
Browse files Browse the repository at this point in the history
  • Loading branch information
TigerHix committed Sep 7, 2019
1 parent b582173 commit 1a8bfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/index.vue
Expand Up @@ -162,7 +162,7 @@ export default {
])
.then(([postsResponse, totalLevelsResponse, latestFeaturedLevelResponse, latestRanksResponse]) => {
return {
posts: postsResponse.data.data,
posts: postsResponse.data.data.filter(it => it.published),
totalLevels: parseInt(totalLevelsResponse.headers['x-total-entries']),
latestFeaturedLevel: latestFeaturedLevelResponse.data.length > 0 ? latestFeaturedLevelResponse.data[0] : null,
latestRanks: latestRanksResponse.data.slice(0, 10)
Expand Down

0 comments on commit 1a8bfb7

Please sign in to comment.