Skip to content

Commit

Permalink
fix(sidebar): alias fallback for id
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqVictor committed Oct 11, 2023
1 parent a73fb2f commit f387a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/sidebar/RightSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
<a-tab-pane
v-for="item in Object.getOwnPropertyNames(info[category])"
:key="item"
:tab="info[category][item].alias">
<h2>{{ info[category][item].alias }}</h2>
:tab="info[category][item].alias || info[category][item].id">
<h2>{{ info[category][item].alias || info[category][item].id }}</h2>
<ul>
<li v-for="url in info[category][item].files" :key="url.name"><a :href="url.path">{{ url.name }}</a></li>
</ul>
Expand Down

0 comments on commit f387a1e

Please sign in to comment.