remove has_source param from livestream claim_search on homepage

This commit is contained in:
Sean Yesmunt 2021-04-30 16:45:18 -04:00
parent ce71393d83
commit b9a7f9673d
2 changed files with 4 additions and 0 deletions

View file

@ -450,7 +450,9 @@ function ClaimListDiscover(props: Props) {
if (shouldPerformSearch) {
const searchOptions = JSON.parse(optionsStringForEffect);
doClaimSearch(searchOptions);
if (liveLivestreamsFirst && options.page === 1) {
delete searchOptions.has_source;
doClaimSearch({ ...searchOptions, has_no_source: true });
}
}

View file

@ -244,7 +244,9 @@ function ClaimTilesDiscover(props: Props) {
if (shouldPerformSearch) {
const searchOptions = JSON.parse(optionsStringForEffect);
doClaimSearch(searchOptions);
if (liveLivestreamsFirst) {
delete searchOptions.has_source;
doClaimSearch({ ...searchOptions, has_no_source: true });
}
}