Second hotfix

This commit is contained in:
Justin Edmund 2022-03-11 02:57:37 -08:00
parent 0680699822
commit 99e11e182f

View file

@ -156,7 +156,7 @@ const SearchModal = (props: Props) => {
const key = `recent_${props.object}`
if (open) {
if (firstLoad && cookies[key].length > 0) {
if (firstLoad && cookies[key] && cookies[key].length > 0) {
setResults(cookies[key])
setRecordCount(cookies[key].length)
setFirstLoad(false)