Skip to content

Commit

Permalink
Make requester, pickup and destination not sortable or filterable for…
Browse files Browse the repository at this point in the history
… now

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Nov 28, 2023
1 parent f31dce3 commit b20c8c0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/react-components/lib/tasks/task-table-datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ export function TaskDataGridTable({
},
flex: 1,
filterOperators: getMinimalDateOperators,
filterable: true,
sortable: false,
filterable: false,
},
{
field: 'requester',
Expand All @@ -173,7 +174,8 @@ export function TaskDataGridTable({
renderCell: (cellValues) => TaskRequester(cellValues.row.booking.requester),
flex: 1,
filterOperators: getMinimalStringFilterOperators,
filterable: true,
sortable: false,
filterable: false,
},
{
field: 'category',
Expand All @@ -197,7 +199,8 @@ export function TaskDataGridTable({
},
flex: 1,
filterOperators: getMinimalStringFilterOperators,
filterable: true,
sortable: false,
filterable: false,
},
{
field: 'destination',
Expand All @@ -210,7 +213,8 @@ export function TaskDataGridTable({
},
flex: 1,
filterOperators: getMinimalStringFilterOperators,
filterable: true,
sortable: false,
filterable: false,
},
{
field: 'assigned_to',
Expand Down

0 comments on commit b20c8c0

Please sign in to comment.