mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +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);
|
||||
setAccountResults(results.accounts);
|
||||
setHashtagResults(results.hashtags);
|
||||
if (type) {
|
||||
offsetRef.current = LIMIT;
|
||||
setShowMore(results[type]?.length >= LIMIT);
|
||||
}
|
||||
}
|
||||
setUiState('default');
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in a new issue