From bb418cbcda7ebf1f32d538d97a9fa312a5509207 Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Wed, 8 Jan 2025 17:55:18 +1100 Subject: [PATCH] rm undefined --- ui/src/components/repos-table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/repos-table.tsx b/ui/src/components/repos-table.tsx index 47a68e4..4072a7b 100644 --- a/ui/src/components/repos-table.tsx +++ b/ui/src/components/repos-table.tsx @@ -49,7 +49,7 @@ function formatDaysAgo(dateString: string): string { } type CustomSortDescriptor = { - column: ReactKey | undefined; + column: ReactKey; direction: "ascending" | "descending"; }; @@ -85,7 +85,7 @@ const columns = [ export default function ReposTable() { const [filterValue, setFilterValue] = useState(""); const [sortDescriptor, setSortDescriptor] = useState({ - column: "stargazers_count" as ReactKey, + column: "stargazers_count", direction: "descending", }); const [selected, setSelected] = useState("ui_frameworks");