Skip to content

Commit

Permalink
allow sort on source list
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Feb 6, 2024
1 parent 3e39760 commit d776abb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/RA/DataSource/views/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ export const DataSourceList = props => (
<Datagrid rowClick="edit">
<TextField source="name" label="datasource.form.name" />
<FunctionField
source="_type"
source="polymorphic_ctype__model"
label="datasource.form.data-type"
sortable={false}
render={({ _type: type }) => sourceTypes[type] || ''}
/>
<FunctionField
Expand All @@ -84,8 +83,8 @@ export const DataSourceList = props => (
render={({ layers }) => layers.length}
/>
<FunctionField
source="status"
label="datasource.form.status"
sortable={false}
render={
({ status, report, id }) =>
<StatusChip sourceId={id} status={{ status, report }} />
Expand Down

0 comments on commit d776abb

Please sign in to comment.