diff --git a/src/routes/documents.pleading.new.tsx b/src/routes/documents.pleading.new.tsx index f3a4e55..9221fc9 100644 --- a/src/routes/documents.pleading.new.tsx +++ b/src/routes/documents.pleading.new.tsx @@ -22,6 +22,9 @@ import { Download, FileText, Save, Loader2, Plus, Trash2 } from "lucide-react"; export const Route = createFileRoute("/documents/pleading/new")({ component: PleadingNewPage, + validateSearch: (search: Record) => ({ + from: typeof search.from === "string" ? search.from : undefined, + }), }); function PleadingNewPage() {