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); setShowMore(!!length);
} }
} else { } else {
setStatusResults(results.statuses); setStatusResults(results.statuses || []);
setAccountResults(results.accounts); setAccountResults(results.accounts || []);
setHashtagResults(results.hashtags); setHashtagResults(results.hashtags || []);
offsetRef.current = 0; offsetRef.current = 0;
setShowMore(false); setShowMore(false);
} }