diff --git a/src/app/(modules)/rgi-test/page.tsx b/src/app/(modules)/rgi-test/page.tsx index afee236..967b4ee 100644 --- a/src/app/(modules)/rgi-test/page.tsx +++ b/src/app/(modules)/rgi-test/page.tsx @@ -577,7 +577,7 @@ export default function RgiTestPage() { "solved", ); const [searchQuery, setSearchQuery] = useState(""); - const [sortState, setSortState] = useState(null); + const [sortState, setSortState] = useState({ key: "dueDate", dir: "desc" }); // Column visibility const [visibleCols, setVisibleCols] = useState>( diff --git a/src/app/(portal)/portal/page.tsx b/src/app/(portal)/portal/page.tsx index 82427cf..eeae2b7 100644 --- a/src/app/(portal)/portal/page.tsx +++ b/src/app/(portal)/portal/page.tsx @@ -588,7 +588,7 @@ function RgiContent() { const [downloadingAppPk, setDownloadingAppPk] = useState(null); const [filterMode, setFilterMode] = useState<"all" | "solved" | "confirmed">("solved"); const [searchQuery, setSearchQuery] = useState(""); - const [sortState, setSortState] = useState(null); + const [sortState, setSortState] = useState({ key: "dueDate", dir: "desc" }); const [visibleCols, setVisibleCols] = useState>( () => new Set(ALL_COLUMNS.filter((c) => c.defaultVisible).map((c) => c.key)), @@ -920,6 +920,7 @@ function RgiContent() {