Skip to content

Commit

Permalink
add initial sort to file table
Browse files Browse the repository at this point in the history
  • Loading branch information
corviday committed Dec 12, 2024
1 parent 0386169 commit ac48ce6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/data-grid/two-level/FileTable/FileTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ export default function FileTable({ data }) {
rows,
prepareRow,
} = useTable(
{ columns, data, defaultColumn, filterTypes, },
{
columns,
data,
initialState: {sortBy: [{id: "scenario"}, {id: "timePeriodDecade"}]},
defaultColumn,
filterTypes,
},
useFilters,
useSortBy,
);
Expand Down

0 comments on commit ac48ce6

Please sign in to comment.