Skip to content

Commit

Permalink
Merge pull request #570 from knowit/bugfix/sortering-listevisning-kun…
Browse files Browse the repository at this point in the history
…deaccordion

[Bugfix] Fikset feil variabel brukt som sortValue i listevisning.
  • Loading branch information
joacimds committed Apr 3, 2024
2 parents 3c5a600 + 6241424 commit 5de0979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/pages/employee/table/SortableEmployeeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ const employeeForCustomerConfig = [
label: 'Tittel',
width: 222,
render: (row: EmployeeCustomerRow) => row.jobTitle,
sortValue: (title: string) => title,
sortValue: (row: EmployeeCustomerRow) => row.jobTitle,
searchValue: (jobTitle: string) => jobTitle,
},
{
label: 'Kunde',
render: (row: EmployeeCustomerRow) => row.customerAndProject,
width: 337,
sortValue: (customer: string) => customer ?? '',
sortValue: (row: EmployeeCustomerRow) => row.customerAndProject,
searchValue: (customer: string) => customer ?? '',
},
{
Expand Down

0 comments on commit 5de0979

Please sign in to comment.