diff --git a/app/soapbox/features/compose/components/search_results.tsx b/app/soapbox/features/compose/components/search_results.tsx index d24c7631d3..d3fa555fad 100644 --- a/app/soapbox/features/compose/components/search_results.tsx +++ b/app/soapbox/features/compose/components/search_results.tsx @@ -46,13 +46,13 @@ const SearchResults: React.FC = () => { const intl = useIntl(); const dispatch = useAppDispatch(); - const value = useAppSelector(state => state.search.get('submittedValue')); - const results = useAppSelector(state => state.search.get('results')); + const value = useAppSelector(state => state.search.submittedValue); + const results = useAppSelector(state => state.search.results); const suggestions = useAppSelector(state => state.suggestions.items); const trendingStatuses = useAppSelector(state => state.trending_statuses.items); const trends = useAppSelector(state => state.trends.items); - const submitted = useAppSelector(state => state.search.get('submitted')); - const selectedFilter = useAppSelector(state => state.search.get('filter')); + const submitted = useAppSelector(state => state.search.submitted); + const selectedFilter = useAppSelector(state => state.search.filter); const handleLoadMore = () => dispatch(expandSearch(selectedFilter)); const handleSelectFilter = (newActiveFilter: SearchFilter) => dispatch(setFilter(newActiveFilter)); diff --git a/app/soapbox/reducers/search.js b/app/soapbox/reducers/search.ts similarity index 69% rename from app/soapbox/reducers/search.js rename to app/soapbox/reducers/search.ts index e086ef4a0c..f315cbb90a 100644 Binary files a/app/soapbox/reducers/search.js and b/app/soapbox/reducers/search.ts differ