Fix search modal filtering

Why were we scoping this to only job_skills?
This commit is contained in:
Justin Edmund 2024-03-13 19:46:13 -07:00
parent cfa78dccc3
commit c43e36e525

View file

@ -244,7 +244,7 @@ const SearchModal = (props: Props) => {
}, [query, open]) }, [query, open])
useEffect(() => { useEffect(() => {
if (open && props.object === 'job_skills') { if (open) {
setCurrentPage(1) setCurrentPage(1)
fetchResults({ replace: true }) fetchResults({ replace: true })
} }