mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 09:18:51 +01: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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue