Fix user search component causing redirects
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2025-03-12 21:52:41 +02:00
parent 2a2421a9eb
commit cf1aa258d4

View File

@@ -43,8 +43,8 @@ export const meta: MetaFunction = (args) => {
export type UserSearchLoaderData = SerializeFrom<typeof loader>;
const searchParamsSchema = z.object({
q: z.string().max(100).default(""),
limit: z.coerce.number().int().min(1).max(25).default(25),
q: z.string().max(100).catch(""),
limit: z.coerce.number().int().min(1).max(25).catch(25),
});
export const loader = async ({ request }: LoaderFunctionArgs) => {