diff --git a/src/pages/SearchPage.js b/src/pages/SearchPage.js index d779ab856fb5..8fa733903a43 100755 --- a/src/pages/SearchPage.js +++ b/src/pages/SearchPage.js @@ -45,18 +45,10 @@ const defaultProps = { function SearchPage({betas, personalDetails, reports, isSearchingForReports}) { const [searchValue, setSearchValue] = useState(''); - const [searchOptions, setSearchOptions] = useState(() => { - const { - recentReports: localRecentReports, - personalDetails: localPersonalDetails, - userToInvite: localUserToInvite, - } = OptionsListUtils.getSearchOptions(reports, personalDetails, '', betas); - - return { - recentReports: localRecentReports, - personalDetails: localPersonalDetails, - userToInvite: localUserToInvite, - }; + const [searchOptions, setSearchOptions] = useState({ + recentReports: {}, + personalDetails: {}, + userToInvite: {}, }); const {isOffline} = useNetwork();