Skip to content

Commit 89070fe

Browse files
Update src/app/(public)/repos/page.tsx
Co-authored-by: Usman Sabuwala <[email protected]>
1 parent f907abc commit 89070fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/(public)/repos/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { RepoResponse, RepoData, RepoItem, SearchParams } from '@/types';
1414

1515
export default async function ReposPage({ searchParams }: { searchParams: Promise<SearchParams> }) {
1616
const sp = await searchParams;
17-
const raw: string[] = Array.isArray(sp.l) ? sp.l : sp.l ? [String(sp.l)] : [];
17+
const langs: string[] = Array.isArray(sp.l) ? sp.l : sp.l ? [String(sp.l)] : [];
1818

1919
const langs = raw
2020
.flatMap(r => r.split(',')) // handles comma-separated and multi params

0 commit comments

Comments
 (0)