We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b1d18 commit 353eaf1Copy full SHA for 353eaf1
client/packages/openblocks/src/comps/comps/tableComp/tableUtils.tsx
@@ -143,7 +143,9 @@ export function sortData(
143
let resultData = data;
144
if (sorter.length > 0) {
145
const [sortColumns, sortMethods] = _(sorter)
146
- .filter((s) => !!s.column && columns[s.column].sortable)
+ .filter((s) => {
147
+ return !!s.column && columns[s.column]?.sortable;
148
+ })
149
.map((s) => [s.column, s.desc ? "desc" : "asc"] as const)
150
.unzip()
151
.value() as [string[], ("desc" | "asc")[]];
0 commit comments