Unverified Commit 87b9851e authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Update apps/gh-discussion-router/app/search/page.tsx

Co-authored-by: 's avatarLuke Sandberg <lukesandberg@users.noreply.github.com>
parent 463e0ad0
...@@ -67,14 +67,12 @@ async function SearchResults({ ...@@ -67,14 +67,12 @@ async function SearchResults({
similarDiscussions.length > 0 && similarDiscussions.length > 0 &&
similarDiscussions[0].score >= env.SIMILARITY_THRESHOLD similarDiscussions[0].score >= env.SIMILARITY_THRESHOLD
const createUrl = getCreateDiscussionUrl(title, description, category)
// If no matches found, redirect to GitHub new discussion page // If no matches found, redirect to GitHub new discussion page
if (!hasGoodMatches) { if (!hasGoodMatches) {
const createUrl = getCreateDiscussionUrl(title, description, category)
redirect(createUrl) redirect(createUrl)
} }
const createUrl = getCreateDiscussionUrl(title, description, category)
return ( return (
<main className="min-h-screen p-8 bg-background"> <main className="min-h-screen p-8 bg-background">
<div className="max-w-4xl mx-auto space-y-8"> <div className="max-w-4xl mx-auto space-y-8">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment