fix(website): only show blog drafts when explicitly requested

The validateSearch round-trip caused drafts to always show because
`false !== undefined` is true. Check for explicit truthy values instead.
This commit is contained in:
Mohamed Boudra
2026-03-29 14:43:23 +07:00
parent 831e3289e7
commit a460c5e9b9
+1 -1
View File
@@ -4,7 +4,7 @@ import { pageMeta } from "~/meta";
export const Route = createFileRoute("/blog/")({
validateSearch: (search: Record<string, unknown>) => ({
drafts: search.drafts !== undefined,
drafts: search.drafts === true || search.drafts === "" || search.drafts === "true",
}),
head: () => ({
meta: pageMeta("Blog - Paseo", "Updates, thoughts, and announcements from the Paseo team."),