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:
infinite-persistence 2021-12-09 08:45:12 +08:00
parent 2a4a84197a
commit a9e1308151
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -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;