mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 12:45:17 +00:00
Merge pull request #379 from VueTubeApp/deepsource-fix-66bcaa17
Replace short hand type conversions with JavaScript methods
This commit is contained in:
commit
46afb738c2
1 changed files with 4 additions and 2 deletions
|
@ -52,8 +52,10 @@ export const actions = {
|
||||||
const featuredSection =
|
const featuredSection =
|
||||||
channel.contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents.find(
|
channel.contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents.find(
|
||||||
(i) => {
|
(i) => {
|
||||||
return !!i?.shelfRenderer?.content?.horizontalListRenderer
|
return Boolean(
|
||||||
?.items[0].gridChannelRenderer;
|
i?.shelfRenderer?.content?.horizontalListRenderer?.items[0]
|
||||||
|
.gridChannelRenderer
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
state.featuredChannels =
|
state.featuredChannels =
|
||||||
|
|
Loading…
Reference in a new issue