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");