mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix search offset not working when first time load with 'type'
This commit is contained in:
parent
fa21eec06a
commit
1e28efd9bb
1 changed files with 4 additions and 0 deletions
|
@ -101,6 +101,10 @@ function Search(props) {
|
||||||
setStatusResults(results.statuses);
|
setStatusResults(results.statuses);
|
||||||
setAccountResults(results.accounts);
|
setAccountResults(results.accounts);
|
||||||
setHashtagResults(results.hashtags);
|
setHashtagResults(results.hashtags);
|
||||||
|
if (type) {
|
||||||
|
offsetRef.current = LIMIT;
|
||||||
|
setShowMore(results[type]?.length >= LIMIT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setUiState('default');
|
setUiState('default');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in a new issue