Skip to content

Commit

Permalink
fix(ui): disable dashboard sorting, it breaks the page
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed May 5, 2023
1 parent bc536ee commit a628bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ const ResultList = () => (
<List pagination={false} bulkActionButtons={false} actions={false} title={<div></div>} sort={{ field: 'meta.count', order: 'DESC' }}>
<Datagrid rowClick={false} bulkActionButtons={false} >
<TextField source="id" label="Content-Type" sortable={false} />
<NumberField source="meta.count" label="Count" />
<NumberField source="meta.count" label="Count" sortable={false} />
</Datagrid>
</List>
);

const RecentResultList = () => (
<List pagination={false} bulkActionButtons={false} actions={false} title={<div></div>} sort={{ field: 'meta.created_at', order: 'DESC' }}>
<Datagrid rowClick={false} bulkActionButtons={false} >
<NumberField source="meta.created_at" noWrap />
<NumberField source="meta.created_at" noWrap sortable={false} />
<TextField source="id" sortable={false} />
</Datagrid>
</List>
Expand Down

0 comments on commit a628bc0

Please sign in to comment.