Fix missing livestream in Category Pages
I accidentally over-limited it to Wild West when trying to exclude Tag Searches from showing livestreams.
This commit is contained in:
parent
2a4a84197a
commit
a9e1308151
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ function DiscoverPage(props: Props) {
|
||||||
|
|
||||||
const initialLiveTileLimit = getPageSize(DEFAULT_LIVESTREAM_TILE_LIMIT);
|
const initialLiveTileLimit = getPageSize(DEFAULT_LIVESTREAM_TILE_LIMIT);
|
||||||
|
|
||||||
const includeLivestreams = window.location.pathname === `/$/${PAGES.WILD_WEST}`;
|
const includeLivestreams = !tagsQuery;
|
||||||
const [liveSection, setLiveSection] = useState(includeLivestreams ? liveSectionStore : SECTION.HIDDEN);
|
const [liveSection, setLiveSection] = useState(includeLivestreams ? liveSectionStore : SECTION.HIDDEN);
|
||||||
const livestreamUris = includeLivestreams && getLivestreamUris(activeLivestreams, channelIds);
|
const livestreamUris = includeLivestreams && getLivestreamUris(activeLivestreams, channelIds);
|
||||||
const useDualList = liveSection === SECTION.LESS && livestreamUris && livestreamUris.length > initialLiveTileLimit;
|
const useDualList = liveSection === SECTION.LESS && livestreamUris && livestreamUris.length > initialLiveTileLimit;
|
||||||
|
|
Loading…
Reference in a new issue