In case they're undefined

This commit is contained in:
Lim Chee Aun 2023-12-03 11:00:24 +08:00
parent bfcb314324
commit 2ad72a667d

View file

@ -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);
}