From 99e11e182f186c5f77ffc33b169fe7d70e0c0904 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 11 Mar 2022 02:57:37 -0800 Subject: [PATCH] Second hotfix --- components/SearchModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SearchModal/index.tsx b/components/SearchModal/index.tsx index 1b520fef..9aeddb4f 100644 --- a/components/SearchModal/index.tsx +++ b/components/SearchModal/index.tsx @@ -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)