Fix href is missing query values

This commit is contained in:
Ian Philips 2022-06-13 08:42:47 -06:00
parent 72f4a2f603
commit 68da02ec00

View File

@ -6,8 +6,8 @@ import { Title } from '../../components/title'
export default function TagPage() { export default function TagPage() {
const router = useRouter() const router = useRouter()
const { tag } = router.query as { tag: string } const { tag } = router.query as { tag: string }
if (!router.isReady) return <div />
// TODO: Fix error: The provided `href` (/tag/[tag]?s=newest) value is missing query values (tag)
return ( return (
<Page> <Page>
<Title text={`#${tag}`} /> <Title text={`#${tag}`} />