mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
packages
This commit is contained in:
8
packages/airtable/src/utils/generateSort.ts
Normal file
8
packages/airtable/src/utils/generateSort.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { CrudSorting } from "@refinedev/core";
|
||||
|
||||
export const generateSort = (sorters?: CrudSorting) => {
|
||||
return sorters?.map((item) => ({
|
||||
field: item.field,
|
||||
direction: item.order,
|
||||
}));
|
||||
};
|
||||
Reference in New Issue
Block a user