mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03:00
In case they're undefined
This commit is contained in:
parent
bfcb314324
commit
2ad72a667d
1 changed files with 3 additions and 3 deletions
|
@ -113,9 +113,9 @@ function Search(props) {
|
|||
setShowMore(!!length);
|
||||
}
|
||||
} else {
|
||||
setStatusResults(results.statuses);
|
||||
setAccountResults(results.accounts);
|
||||
setHashtagResults(results.hashtags);
|
||||
setStatusResults(results.statuses || []);
|
||||
setAccountResults(results.accounts || []);
|
||||
setHashtagResults(results.hashtags || []);
|
||||
offsetRef.current = 0;
|
||||
setShowMore(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue