Skip to content

Commit

Permalink
make review recommendations
Browse files Browse the repository at this point in the history
Co-Authored-By: absidue <[email protected]>
  • Loading branch information
ChunkyProgrammer and absidue committed Mar 2, 2023
1 parent 3af757f commit 9ad7d64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ export default Vue.extend({
},

getBestQualityImage(imageArray) {
if (imageArray.length > 0) {
return imageArray[Math.max(0, imageArray.length - 1)].url
} else {
return ''
}
return imageArray.at(-1)?.url ?? ''
}
}
})
1 change: 1 addition & 0 deletions src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default defineComponent({
tabInfoValues: [
'videos',
'playlists',
'community',
'about'
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/Channel/Channel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
:data="latestCommunityPosts"
role="tabpanel"
aria-labelledby="communityTab"
:display="'list'"
display="list"
/>
<ft-flex-box
v-if="currentTab === 'community' && latestCommunityPosts.length === 0"
Expand Down

0 comments on commit 9ad7d64

Please sign in to comment.