mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: should have return
This commit is contained in:
parent
aeb7ef0238
commit
4f82e8b3df
@ -18,7 +18,10 @@ const Paginator = dynamic(() => import('@components/Paginator'))
|
||||
|
||||
const Search:NextPage<SearchProps> = ({ data, query }) => {
|
||||
const router = useRouter()
|
||||
if(!query?.q) redirectTo(router, '/')
|
||||
if(!query?.q) {
|
||||
redirectTo(router, '/')
|
||||
return
|
||||
}
|
||||
return <>
|
||||
<Hero header={`"${query.q}" 검색 결과`} description={`'${query.q}' 에 대한 검색 결과입니다.`} />
|
||||
<SEO title={`"${query.q}" 검색 결과`} description={`'${query.q}' 에 대한 검색 결과입니다.`} />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user