Skip to content

Commit

Permalink
Merge pull request #918 from danskernesdigitalebibliotek/fix/loan-ren…
Browse files Browse the repository at this point in the history
…ewal-error

Fix loan renewal error
  • Loading branch information
Adamik10 authored Jan 31, 2024
2 parents 663fe17 + 0b34b36 commit ee5a706
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/GroupModal/LoansGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const LoansGroupModal: FC<LoansGroupModalProps> = ({
RenewedLoanV2[] | null
>({
request: {
params: { data: materialsToRenew.map((id) => Number(id)) },
params: {
data: materialsToRenew.map((material) => material.loanId ?? 0)
},
operation: mutate
},
onError: () => {
Expand Down

0 comments on commit ee5a706

Please sign in to comment.