Skip to content

Commit

Permalink
🐛 fix: Filter invalid sidebar items
Browse files Browse the repository at this point in the history
To resolve the order issue of sidebar items

Signed-off-by: sqrtthree <[email protected]>
  • Loading branch information
linhe0x0 committed Sep 3, 2018
1 parent 01d1134 commit 6bb6438
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/Sidebar/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="sidebar">
<div class="group" v-for="sidebarGroupItem, index in sidebars">
<div class="group" v-for="sidebarGroupItem, index in sidebars" v-if="sidebarGroupItem">
<div class="group__title">{{ sidebarGroupOrder[index] }}</div>
<div class="group__body">

Expand Down Expand Up @@ -101,7 +101,6 @@ export default {
.map(item => {
return this.items[item]
})
.filter(item => item)
},
},
methods: {
Expand Down

0 comments on commit 6bb6438

Please sign in to comment.