Skip to content

Commit

Permalink
fix(list): add search fallback for empty alias
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqVictor committed Sep 27, 2023
1 parent a8a0cfd commit 79699ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MirrorList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default defineComponent({
computed: {
mirrorDataFilter () {
return (this.mirrorData as MirrorViewItem[]).sort(compareByName).filter(
value => value.status !== 'paused' && value.alias.toLocaleLowerCase().includes(this.mirrorQ.toLocaleLowerCase())
value => value.status !== 'paused' && (value.alias || value.id).toLocaleLowerCase().includes(this.mirrorQ.toLocaleLowerCase())
)
},
proxyDataFilter () {
Expand Down

0 comments on commit 79699ec

Please sign in to comment.