0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-29 06:33:05 +00:00

Merge pull request #379 from VueTubeApp/deepsource-fix-66bcaa17

Replace short hand type conversions with JavaScript methods
This commit is contained in:
Alex 2022-06-22 17:30:04 +12:00 committed by GitHub
commit 46afb738c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,10 @@ export const actions = {
const featuredSection =
channel.contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents.find(
(i) => {
return !!i?.shelfRenderer?.content?.horizontalListRenderer
?.items[0].gridChannelRenderer;
return Boolean(
i?.shelfRenderer?.content?.horizontalListRenderer?.items[0]
.gridChannelRenderer
);
}
);
state.featuredChannels =