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
1 changed files with 4 additions and 2 deletions

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 =