Skip to content

Commit

Permalink
fix: removed ability to sort by serviceProvider in medication - Ref g…
Browse files Browse the repository at this point in the history
…estion-de-projet#2148
  • Loading branch information
ManelleG committed Jun 29, 2023
1 parent 247c9cf commit 9bffc0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/DataTable/DataTableMedication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const DataTableMedication: React.FC<DataTableMedicationProps> = ({
? { label: 'Type de prescription', code: 'type', align: 'center', sortableColumn: true }
: null,
{ label: "Voie d'administration", code: 'route', align: 'center', sortableColumn: true },
selectedTab === 'administration' ? { label: 'Quantité', code: '', align: 'center', sortableColumn: false } : null,
{ label: 'Unité exécutrice', code: '', align: 'center', sortableColumn: true },
selectedTab === 'administration' ? { label: 'Commentaire', code: '', align: 'center', sortableColumn: false } : null
selectedTab === 'administration' ? { label: 'Quantité', align: 'center', sortableColumn: false } : null,
{ label: 'Unité exécutrice', align: 'center', sortableColumn: false },
selectedTab === 'administration' ? { label: 'Commentaire', align: 'center', sortableColumn: false } : null
].filter((elem) => elem !== null) as Column[]

return (
Expand Down

0 comments on commit 9bffc0a

Please sign in to comment.