remove has_source param from livestream claim_search on homepage
This commit is contained in:
parent
ce71393d83
commit
b9a7f9673d
2 changed files with 4 additions and 0 deletions
|
@ -450,7 +450,9 @@ function ClaimListDiscover(props: Props) {
|
||||||
if (shouldPerformSearch) {
|
if (shouldPerformSearch) {
|
||||||
const searchOptions = JSON.parse(optionsStringForEffect);
|
const searchOptions = JSON.parse(optionsStringForEffect);
|
||||||
doClaimSearch(searchOptions);
|
doClaimSearch(searchOptions);
|
||||||
|
|
||||||
if (liveLivestreamsFirst && options.page === 1) {
|
if (liveLivestreamsFirst && options.page === 1) {
|
||||||
|
delete searchOptions.has_source;
|
||||||
doClaimSearch({ ...searchOptions, has_no_source: true });
|
doClaimSearch({ ...searchOptions, has_no_source: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,9 @@ function ClaimTilesDiscover(props: Props) {
|
||||||
if (shouldPerformSearch) {
|
if (shouldPerformSearch) {
|
||||||
const searchOptions = JSON.parse(optionsStringForEffect);
|
const searchOptions = JSON.parse(optionsStringForEffect);
|
||||||
doClaimSearch(searchOptions);
|
doClaimSearch(searchOptions);
|
||||||
|
|
||||||
if (liveLivestreamsFirst) {
|
if (liveLivestreamsFirst) {
|
||||||
|
delete searchOptions.has_source;
|
||||||
doClaimSearch({ ...searchOptions, has_no_source: true });
|
doClaimSearch({ ...searchOptions, has_no_source: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue